tools/tiff2pdf.c:5421: error: Memory Leak
  memory dynamically allocated by call to `_TIFFmalloc()` at line 5399, column 34 is not reachable after line 5421, column 13.

tools/tiff2pdf.c:5390:1: start of procedure t2p_write_pdf()
5388. */
5389. 
5390. tsize_t t2p_write_pdf(T2P* t2p, TIFF* input, TIFF* output){
      ^
5391. 
5392. 	tsize_t written=0;

tools/tiff2pdf.c:5392:2: 
5390. tsize_t t2p_write_pdf(T2P* t2p, TIFF* input, TIFF* output){
5391. 
5392. 	tsize_t written=0;
       ^
5393. 	ttile_t i2=0;
5394. 	tsize_t streamlen=0;

tools/tiff2pdf.c:5393:2: 
5391. 
5392. 	tsize_t written=0;
5393. 	ttile_t i2=0;
       ^
5394. 	tsize_t streamlen=0;
5395. 	uint16 i=0;

tools/tiff2pdf.c:5394:2: 
5392. 	tsize_t written=0;
5393. 	ttile_t i2=0;
5394. 	tsize_t streamlen=0;
       ^
5395. 	uint16 i=0;
5396. 

tools/tiff2pdf.c:5395:2: 
5393. 	ttile_t i2=0;
5394. 	tsize_t streamlen=0;
5395. 	uint16 i=0;
       ^
5396. 
5397. 	t2p_read_tiff_init(t2p, input);

tools/tiff2pdf.c:5397:2: Skipping t2p_read_tiff_init(): empty list of specs
5395. 	uint16 i=0;
5396. 
5397. 	t2p_read_tiff_init(t2p, input);
       ^
5398. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5399. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );

tools/tiff2pdf.c:5398:5: Taking false branch
5396. 
5397. 	t2p_read_tiff_init(t2p, input);
5398. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
          ^
5399. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
5400. 	if(t2p->pdf_xrefoffsets==NULL){

tools/tiff2pdf.c:5399:46: Condition is true
5397. 	t2p_read_tiff_init(t2p, input);
5398. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5399. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
                                                   ^
5400. 	if(t2p->pdf_xrefoffsets==NULL){
5401. 		TIFFError(

tools/tiff2pdf.c:5399:46: Condition is true
5397. 	t2p_read_tiff_init(t2p, input);
5398. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5399. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
                                                   ^
5400. 	if(t2p->pdf_xrefoffsets==NULL){
5401. 		TIFFError(

tools/tiff2pdf.c:5399:2: 
5397. 	t2p_read_tiff_init(t2p, input);
5398. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5399. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
       ^
5400. 	if(t2p->pdf_xrefoffsets==NULL){
5401. 		TIFFError(

libtiff/tif_unix.c:310:1: start of procedure _TIFFmalloc()
  308. #endif
  309. 
  310. void*
       ^
  311. _TIFFmalloc(tmsize_t s)
  312. {

libtiff/tif_unix.c:313:13: Taking false branch
  311. _TIFFmalloc(tmsize_t s)
  312. {
  313.         if (s == 0)
                   ^
  314.                 return ((void *) NULL);
  315. 

libtiff/tif_unix.c:316:2: 
  314.                 return ((void *) NULL);
  315. 
  316. 	return (malloc((size_t) s));
        ^
  317. }
  318. 

libtiff/tif_unix.c:317:1: return from a call to _TIFFmalloc
  315. 
  316. 	return (malloc((size_t) s));
  317. }
       ^
  318. 
  319. void

tools/tiff2pdf.c:5400:5: Taking false branch
5398. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5399. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
5400. 	if(t2p->pdf_xrefoffsets==NULL){
          ^
5401. 		TIFFError(
5402. 			TIFF2PDF_MODULE, 

tools/tiff2pdf.c:5408:2: 
5406. 		return(written);
5407. 	}
5408. 	t2p->pdf_xrefcount=0;
       ^
5409. 	t2p->pdf_catalog=1;
5410. 	t2p->pdf_info=2;

tools/tiff2pdf.c:5409:2: 
5407. 	}
5408. 	t2p->pdf_xrefcount=0;
5409. 	t2p->pdf_catalog=1;
       ^
5410. 	t2p->pdf_info=2;
5411. 	t2p->pdf_pages=3;

tools/tiff2pdf.c:5410:2: 
5408. 	t2p->pdf_xrefcount=0;
5409. 	t2p->pdf_catalog=1;
5410. 	t2p->pdf_info=2;
       ^
5411. 	t2p->pdf_pages=3;
5412. 	written += t2p_write_pdf_header(t2p, output);

tools/tiff2pdf.c:5411:2: 
5409. 	t2p->pdf_catalog=1;
5410. 	t2p->pdf_info=2;
5411. 	t2p->pdf_pages=3;
       ^
5412. 	written += t2p_write_pdf_header(t2p, output);
5413. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;

tools/tiff2pdf.c:5412:2: 
5410. 	t2p->pdf_info=2;
5411. 	t2p->pdf_pages=3;
5412. 	written += t2p_write_pdf_header(t2p, output);
       ^
5413. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5414. 	t2p->pdf_catalog=t2p->pdf_xrefcount;

tools/tiff2pdf.c:3748:1: start of procedure t2p_write_pdf_header()
  3746. */
  3747. 
  3748. tsize_t t2p_write_pdf_header(T2P* t2p, TIFF* output){
        ^
  3749. 
  3750. 	tsize_t written=0;

tools/tiff2pdf.c:3750:2: 
  3748. tsize_t t2p_write_pdf_header(T2P* t2p, TIFF* output){
  3749. 
  3750. 	tsize_t written=0;
         ^
  3751. 	char buffer[16];
  3752. 	int buflen=0;

tools/tiff2pdf.c:3752:2: 
  3750. 	tsize_t written=0;
  3751. 	char buffer[16];
  3752. 	int buflen=0;
         ^
  3753. 	
  3754. 	buflen = snprintf(buffer, sizeof(buffer), "%%PDF-%u.%u ",

tools/tiff2pdf.c:3754:2: 
  3752. 	int buflen=0;
  3753. 	
  3754. 	buflen = snprintf(buffer, sizeof(buffer), "%%PDF-%u.%u ",
         ^
  3755. 			  t2p->pdf_majorversion&0xff,
  3756. 			  t2p->pdf_minorversion&0xff);

tools/tiff2pdf.c:3757:2: Taking false branch
  3755. 			  t2p->pdf_majorversion&0xff,
  3756. 			  t2p->pdf_minorversion&0xff);
  3757. 	check_snprintf_ret(t2p, buflen, buffer);
         ^
  3758. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen);
  3759. 	written += t2pWriteFile(output, (tdata_t)"\n%\342\343\317\323\n", 7);

tools/tiff2pdf.c:3757:2: Taking false branch
  3755. 			  t2p->pdf_majorversion&0xff,
  3756. 			  t2p->pdf_minorversion&0xff);
  3757. 	check_snprintf_ret(t2p, buflen, buffer);
         ^
  3758. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen);
  3759. 	written += t2pWriteFile(output, (tdata_t)"\n%\342\343\317\323\n", 7);

tools/tiff2pdf.c:3758:2: 
  3756. 			  t2p->pdf_minorversion&0xff);
  3757. 	check_snprintf_ret(t2p, buflen, buffer);
  3758. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen);
         ^
  3759. 	written += t2pWriteFile(output, (tdata_t)"\n%\342\343\317\323\n", 7);
  3760. 

tools/tiff2pdf.c:373:1: start of procedure t2pWriteFile()
    371. #endif /* OJPEG_SUPPORT */
    372. 
    373. static tmsize_t 
         ^
    374. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    375. {

tools/tiff2pdf.c:376:2: 
    374. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    375. {
    376. 	thandle_t client = TIFFClientdata(tif);
          ^
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    378. 	if (proc)

libtiff/tif_open.c:536:1: start of procedure TIFFClientdata()
      534.  * Return open file's clientdata.
      535.  */
      536. thandle_t
           ^
      537. TIFFClientdata(TIFF* tif)
      538. {

libtiff/tif_open.c:539:2: 
      537. TIFFClientdata(TIFF* tif)
      538. {
      539. 	return (tif->tif_clientdata);
            ^
      540. }
      541. 

libtiff/tif_open.c:540:1: return from a call to TIFFClientdata
      538. {
      539. 	return (tif->tif_clientdata);
      540. }
           ^
      541. 
      542. /*

tools/tiff2pdf.c:377:2: 
    375. {
    376. 	thandle_t client = TIFFClientdata(tif);
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    378. 	if (proc)
    379. 		return proc(client, data, size);

libtiff/tif_open.c:667:1: start of procedure TIFFGetWriteProc()
      665.  * Return pointer to file write method.
      666.  */
      667. TIFFReadWriteProc
           ^
      668. TIFFGetWriteProc(TIFF* tif)
      669. {

libtiff/tif_open.c:670:2: 
      668. TIFFGetWriteProc(TIFF* tif)
      669. {
      670. 	return (tif->tif_writeproc);
            ^
      671. }
      672. 

libtiff/tif_open.c:671:1: return from a call to TIFFGetWriteProc
      669. {
      670. 	return (tif->tif_writeproc);
      671. }
           ^
      672. 
      673. /*

tools/tiff2pdf.c:378:6: Taking false branch
    376. 	thandle_t client = TIFFClientdata(tif);
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    378. 	if (proc)
              ^
    379. 		return proc(client, data, size);
    380. 	return -1;

tools/tiff2pdf.c:380:2: 
    378. 	if (proc)
    379. 		return proc(client, data, size);
    380. 	return -1;
          ^
    381. }
    382. 

tools/tiff2pdf.c:381:1: return from a call to t2pWriteFile
    379. 		return proc(client, data, size);
    380. 	return -1;
    381. }
         ^
    382. 
    383. static uint64

tools/tiff2pdf.c:3759:2: 
  3757. 	check_snprintf_ret(t2p, buflen, buffer);
  3758. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen);
  3759. 	written += t2pWriteFile(output, (tdata_t)"\n%\342\343\317\323\n", 7);
         ^
  3760. 
  3761. 	return(written);

tools/tiff2pdf.c:373:1: start of procedure t2pWriteFile()
    371. #endif /* OJPEG_SUPPORT */
    372. 
    373. static tmsize_t 
         ^
    374. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    375. {

tools/tiff2pdf.c:376:2: 
    374. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    375. {
    376. 	thandle_t client = TIFFClientdata(tif);
          ^
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    378. 	if (proc)

libtiff/tif_open.c:536:1: start of procedure TIFFClientdata()
      534.  * Return open file's clientdata.
      535.  */
      536. thandle_t
           ^
      537. TIFFClientdata(TIFF* tif)
      538. {

libtiff/tif_open.c:539:2: 
      537. TIFFClientdata(TIFF* tif)
      538. {
      539. 	return (tif->tif_clientdata);
            ^
      540. }
      541. 

libtiff/tif_open.c:540:1: return from a call to TIFFClientdata
      538. {
      539. 	return (tif->tif_clientdata);
      540. }
           ^
      541. 
      542. /*

tools/tiff2pdf.c:377:2: 
    375. {
    376. 	thandle_t client = TIFFClientdata(tif);
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    378. 	if (proc)
    379. 		return proc(client, data, size);

libtiff/tif_open.c:667:1: start of procedure TIFFGetWriteProc()
      665.  * Return pointer to file write method.
      666.  */
      667. TIFFReadWriteProc
           ^
      668. TIFFGetWriteProc(TIFF* tif)
      669. {

libtiff/tif_open.c:670:2: 
      668. TIFFGetWriteProc(TIFF* tif)
      669. {
      670. 	return (tif->tif_writeproc);
            ^
      671. }
      672. 

libtiff/tif_open.c:671:1: return from a call to TIFFGetWriteProc
      669. {
      670. 	return (tif->tif_writeproc);
      671. }
           ^
      672. 
      673. /*

tools/tiff2pdf.c:378:6: Taking false branch
    376. 	thandle_t client = TIFFClientdata(tif);
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    378. 	if (proc)
              ^
    379. 		return proc(client, data, size);
    380. 	return -1;

tools/tiff2pdf.c:380:2: 
    378. 	if (proc)
    379. 		return proc(client, data, size);
    380. 	return -1;
          ^
    381. }
    382. 

tools/tiff2pdf.c:381:1: return from a call to t2pWriteFile
    379. 		return proc(client, data, size);
    380. 	return -1;
    381. }
         ^
    382. 
    383. static uint64

tools/tiff2pdf.c:3761:2: 
  3759. 	written += t2pWriteFile(output, (tdata_t)"\n%\342\343\317\323\n", 7);
  3760. 
  3761. 	return(written);
         ^
  3762. }
  3763. 

tools/tiff2pdf.c:3762:1: return from a call to t2p_write_pdf_header
  3760. 
  3761. 	return(written);
  3762. }
        ^
  3763. 
  3764. /*

tools/tiff2pdf.c:5413:2: 
5411. 	t2p->pdf_pages=3;
5412. 	written += t2p_write_pdf_header(t2p, output);
5413. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
       ^
5414. 	t2p->pdf_catalog=t2p->pdf_xrefcount;
5415. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);

tools/tiff2pdf.c:5414:2: 
5412. 	written += t2p_write_pdf_header(t2p, output);
5413. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5414. 	t2p->pdf_catalog=t2p->pdf_xrefcount;
       ^
5415. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5416. 	written += t2p_write_pdf_catalog(t2p, output);

tools/tiff2pdf.c:5415:2: 
5413. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5414. 	t2p->pdf_catalog=t2p->pdf_xrefcount;
5415. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
       ^
5416. 	written += t2p_write_pdf_catalog(t2p, output);
5417. 	written += t2p_write_pdf_obj_end(output);

tools/tiff2pdf.c:3768:1: start of procedure t2p_write_pdf_obj_start()
  3766. */
  3767. 
  3768. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
        ^
  3769. 
  3770. 	tsize_t written=0;

tools/tiff2pdf.c:3770:2: 
  3768. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
  3769. 
  3770. 	tsize_t written=0;
         ^
  3771. 	char buffer[32];
  3772. 	int buflen=0;

tools/tiff2pdf.c:3772:2: 
  3770. 	tsize_t written=0;
  3771. 	char buffer[32];
  3772. 	int buflen=0;
         ^
  3773. 
  3774. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);

tools/tiff2pdf.c:3774:2: 
  3772. 	int buflen=0;
  3773. 
  3774. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
         ^
  3775. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3776. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );

tools/tiff2pdf.c:3775:2: Taking false branch
  3773. 
  3774. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
  3775. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
         ^
  3776. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
  3777. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);

tools/tiff2pdf.c:3775:2: Taking false branch
  3773. 
  3774. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
  3775. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
         ^
  3776. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
  3777. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);

tools/tiff2pdf.c:3776:2: 
  3774. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
  3775. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3776. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
         ^
  3777. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
  3778. 

tools/tiff2pdf.c:373:1: start of procedure t2pWriteFile()
    371. #endif /* OJPEG_SUPPORT */
    372. 
    373. static tmsize_t 
         ^
    374. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    375. {

tools/tiff2pdf.c:376:2: 
    374. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    375. {
    376. 	thandle_t client = TIFFClientdata(tif);
          ^
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    378. 	if (proc)

libtiff/tif_open.c:536:1: start of procedure TIFFClientdata()
      534.  * Return open file's clientdata.
      535.  */
      536. thandle_t
           ^
      537. TIFFClientdata(TIFF* tif)
      538. {

libtiff/tif_open.c:539:2: 
      537. TIFFClientdata(TIFF* tif)
      538. {
      539. 	return (tif->tif_clientdata);
            ^
      540. }
      541. 

libtiff/tif_open.c:540:1: return from a call to TIFFClientdata
      538. {
      539. 	return (tif->tif_clientdata);
      540. }
           ^
      541. 
      542. /*

tools/tiff2pdf.c:377:2: 
    375. {
    376. 	thandle_t client = TIFFClientdata(tif);
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    378. 	if (proc)
    379. 		return proc(client, data, size);

libtiff/tif_open.c:667:1: start of procedure TIFFGetWriteProc()
      665.  * Return pointer to file write method.
      666.  */
      667. TIFFReadWriteProc
           ^
      668. TIFFGetWriteProc(TIFF* tif)
      669. {

libtiff/tif_open.c:670:2: 
      668. TIFFGetWriteProc(TIFF* tif)
      669. {
      670. 	return (tif->tif_writeproc);
            ^
      671. }
      672. 

libtiff/tif_open.c:671:1: return from a call to TIFFGetWriteProc
      669. {
      670. 	return (tif->tif_writeproc);
      671. }
           ^
      672. 
      673. /*

tools/tiff2pdf.c:378:6: Taking false branch
    376. 	thandle_t client = TIFFClientdata(tif);
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    378. 	if (proc)
              ^
    379. 		return proc(client, data, size);
    380. 	return -1;

tools/tiff2pdf.c:380:2: 
    378. 	if (proc)
    379. 		return proc(client, data, size);
    380. 	return -1;
          ^
    381. }
    382. 

tools/tiff2pdf.c:381:1: return from a call to t2pWriteFile
    379. 		return proc(client, data, size);
    380. 	return -1;
    381. }
         ^
    382. 
    383. static uint64

tools/tiff2pdf.c:3777:2: 
  3775. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3776. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
  3777. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
         ^
  3778. 
  3779. 	return(written);

tools/tiff2pdf.c:373:1: start of procedure t2pWriteFile()
    371. #endif /* OJPEG_SUPPORT */
    372. 
    373. static tmsize_t 
         ^
    374. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    375. {

tools/tiff2pdf.c:376:2: 
    374. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    375. {
    376. 	thandle_t client = TIFFClientdata(tif);
          ^
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    378. 	if (proc)

libtiff/tif_open.c:536:1: start of procedure TIFFClientdata()
      534.  * Return open file's clientdata.
      535.  */
      536. thandle_t
           ^
      537. TIFFClientdata(TIFF* tif)
      538. {

libtiff/tif_open.c:539:2: 
      537. TIFFClientdata(TIFF* tif)
      538. {
      539. 	return (tif->tif_clientdata);
            ^
      540. }
      541. 

libtiff/tif_open.c:540:1: return from a call to TIFFClientdata
      538. {
      539. 	return (tif->tif_clientdata);
      540. }
           ^
      541. 
      542. /*

tools/tiff2pdf.c:377:2: 
    375. {
    376. 	thandle_t client = TIFFClientdata(tif);
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    378. 	if (proc)
    379. 		return proc(client, data, size);

libtiff/tif_open.c:667:1: start of procedure TIFFGetWriteProc()
      665.  * Return pointer to file write method.
      666.  */
      667. TIFFReadWriteProc
           ^
      668. TIFFGetWriteProc(TIFF* tif)
      669. {

libtiff/tif_open.c:670:2: 
      668. TIFFGetWriteProc(TIFF* tif)
      669. {
      670. 	return (tif->tif_writeproc);
            ^
      671. }
      672. 

libtiff/tif_open.c:671:1: return from a call to TIFFGetWriteProc
      669. {
      670. 	return (tif->tif_writeproc);
      671. }
           ^
      672. 
      673. /*

tools/tiff2pdf.c:378:6: Taking false branch
    376. 	thandle_t client = TIFFClientdata(tif);
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    378. 	if (proc)
              ^
    379. 		return proc(client, data, size);
    380. 	return -1;

tools/tiff2pdf.c:380:2: 
    378. 	if (proc)
    379. 		return proc(client, data, size);
    380. 	return -1;
          ^
    381. }
    382. 

tools/tiff2pdf.c:381:1: return from a call to t2pWriteFile
    379. 		return proc(client, data, size);
    380. 	return -1;
    381. }
         ^
    382. 
    383. static uint64

tools/tiff2pdf.c:3779:2: 
  3777. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
  3778. 
  3779. 	return(written);
         ^
  3780. }
  3781. 

tools/tiff2pdf.c:3780:1: return from a call to t2p_write_pdf_obj_start
  3778. 
  3779. 	return(written);
  3780. }
        ^
  3781. 
  3782. /*

tools/tiff2pdf.c:5416:2: 
5414. 	t2p->pdf_catalog=t2p->pdf_xrefcount;
5415. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5416. 	written += t2p_write_pdf_catalog(t2p, output);
       ^
5417. 	written += t2p_write_pdf_obj_end(output);
5418. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;

tools/tiff2pdf.c:4057:1: start of procedure t2p_write_pdf_catalog()
  4055.  */
  4056. 
  4057. tsize_t t2p_write_pdf_catalog(T2P* t2p, TIFF* output)
        ^
  4058. {
  4059. 	tsize_t written = 0;

tools/tiff2pdf.c:4059:2: 
  4057. tsize_t t2p_write_pdf_catalog(T2P* t2p, TIFF* output)
  4058. {
  4059. 	tsize_t written = 0;
         ^
  4060. 	char buffer[32];
  4061. 	int buflen = 0;

tools/tiff2pdf.c:4061:2: 
  4059. 	tsize_t written = 0;
  4060. 	char buffer[32];
  4061. 	int buflen = 0;
         ^
  4062. 
  4063. 	written += t2pWriteFile(output, 

tools/tiff2pdf.c:4063:2: 
  4061. 	int buflen = 0;
  4062. 
  4063. 	written += t2pWriteFile(output, 
         ^
  4064. 		(tdata_t)"<< \n/Type /Catalog \n/Pages ", 
  4065. 		27);

tools/tiff2pdf.c:373:1: start of procedure t2pWriteFile()
    371. #endif /* OJPEG_SUPPORT */
    372. 
    373. static tmsize_t 
         ^
    374. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    375. {

tools/tiff2pdf.c:376:2: 
    374. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    375. {
    376. 	thandle_t client = TIFFClientdata(tif);
          ^
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    378. 	if (proc)

libtiff/tif_open.c:536:1: start of procedure TIFFClientdata()
      534.  * Return open file's clientdata.
      535.  */
      536. thandle_t
           ^
      537. TIFFClientdata(TIFF* tif)
      538. {

libtiff/tif_open.c:539:2: 
      537. TIFFClientdata(TIFF* tif)
      538. {
      539. 	return (tif->tif_clientdata);
            ^
      540. }
      541. 

libtiff/tif_open.c:540:1: return from a call to TIFFClientdata
      538. {
      539. 	return (tif->tif_clientdata);
      540. }
           ^
      541. 
      542. /*

tools/tiff2pdf.c:377:2: 
    375. {
    376. 	thandle_t client = TIFFClientdata(tif);
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    378. 	if (proc)
    379. 		return proc(client, data, size);

libtiff/tif_open.c:667:1: start of procedure TIFFGetWriteProc()
      665.  * Return pointer to file write method.
      666.  */
      667. TIFFReadWriteProc
           ^
      668. TIFFGetWriteProc(TIFF* tif)
      669. {

libtiff/tif_open.c:670:2: 
      668. TIFFGetWriteProc(TIFF* tif)
      669. {
      670. 	return (tif->tif_writeproc);
            ^
      671. }
      672. 

libtiff/tif_open.c:671:1: return from a call to TIFFGetWriteProc
      669. {
      670. 	return (tif->tif_writeproc);
      671. }
           ^
      672. 
      673. /*

tools/tiff2pdf.c:378:6: Taking false branch
    376. 	thandle_t client = TIFFClientdata(tif);
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    378. 	if (proc)
              ^
    379. 		return proc(client, data, size);
    380. 	return -1;

tools/tiff2pdf.c:380:2: 
    378. 	if (proc)
    379. 		return proc(client, data, size);
    380. 	return -1;
          ^
    381. }
    382. 

tools/tiff2pdf.c:381:1: return from a call to t2pWriteFile
    379. 		return proc(client, data, size);
    380. 	return -1;
    381. }
         ^
    382. 
    383. static uint64

tools/tiff2pdf.c:4066:2: 
  4064. 		(tdata_t)"<< \n/Type /Catalog \n/Pages ", 
  4065. 		27);
  4066. 	buflen = snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)t2p->pdf_pages);
         ^
  4067. 	check_snprintf_ret(t2p, buflen, buffer);
  4068. 	written += t2pWriteFile(output, (tdata_t) buffer,

tools/tiff2pdf.c:4067:2: Taking false branch
  4065. 		27);
  4066. 	buflen = snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)t2p->pdf_pages);
  4067. 	check_snprintf_ret(t2p, buflen, buffer);
         ^
  4068. 	written += t2pWriteFile(output, (tdata_t) buffer,
  4069. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));

tools/tiff2pdf.c:4067:2: Taking false branch
  4065. 		27);
  4066. 	buflen = snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)t2p->pdf_pages);
  4067. 	check_snprintf_ret(t2p, buflen, buffer);
         ^
  4068. 	written += t2pWriteFile(output, (tdata_t) buffer,
  4069. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));

tools/tiff2pdf.c:4069:5: Condition is false
  4067. 	check_snprintf_ret(t2p, buflen, buffer);
  4068. 	written += t2pWriteFile(output, (tdata_t) buffer,
  4069. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));
            ^
  4070. 	written += t2pWriteFile(output, (tdata_t) " 0 R \n", 6);
  4071. 	if(t2p->pdf_fitwindow){

tools/tiff2pdf.c:4068:2: 
  4066. 	buflen = snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)t2p->pdf_pages);
  4067. 	check_snprintf_ret(t2p, buflen, buffer);
  4068. 	written += t2pWriteFile(output, (tdata_t) buffer,
         ^
  4069. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));
  4070. 	written += t2pWriteFile(output, (tdata_t) " 0 R \n", 6);

tools/tiff2pdf.c:373:1: start of procedure t2pWriteFile()
    371. #endif /* OJPEG_SUPPORT */
    372. 
    373. static tmsize_t 
         ^
    374. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    375. {

tools/tiff2pdf.c:376:2: 
    374. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    375. {
    376. 	thandle_t client = TIFFClientdata(tif);
          ^
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    378. 	if (proc)

libtiff/tif_open.c:536:1: start of procedure TIFFClientdata()
      534.  * Return open file's clientdata.
      535.  */
      536. thandle_t
           ^
      537. TIFFClientdata(TIFF* tif)
      538. {

libtiff/tif_open.c:539:2: 
      537. TIFFClientdata(TIFF* tif)
      538. {
      539. 	return (tif->tif_clientdata);
            ^
      540. }
      541. 

libtiff/tif_open.c:540:1: return from a call to TIFFClientdata
      538. {
      539. 	return (tif->tif_clientdata);
      540. }
           ^
      541. 
      542. /*

tools/tiff2pdf.c:377:2: 
    375. {
    376. 	thandle_t client = TIFFClientdata(tif);
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    378. 	if (proc)
    379. 		return proc(client, data, size);

libtiff/tif_open.c:667:1: start of procedure TIFFGetWriteProc()
      665.  * Return pointer to file write method.
      666.  */
      667. TIFFReadWriteProc
           ^
      668. TIFFGetWriteProc(TIFF* tif)
      669. {

libtiff/tif_open.c:670:2: 
      668. TIFFGetWriteProc(TIFF* tif)
      669. {
      670. 	return (tif->tif_writeproc);
            ^
      671. }
      672. 

libtiff/tif_open.c:671:1: return from a call to TIFFGetWriteProc
      669. {
      670. 	return (tif->tif_writeproc);
      671. }
           ^
      672. 
      673. /*

tools/tiff2pdf.c:378:6: Taking false branch
    376. 	thandle_t client = TIFFClientdata(tif);
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    378. 	if (proc)
              ^
    379. 		return proc(client, data, size);
    380. 	return -1;

tools/tiff2pdf.c:380:2: 
    378. 	if (proc)
    379. 		return proc(client, data, size);
    380. 	return -1;
          ^
    381. }
    382. 

tools/tiff2pdf.c:381:1: return from a call to t2pWriteFile
    379. 		return proc(client, data, size);
    380. 	return -1;
    381. }
         ^
    382. 
    383. static uint64

tools/tiff2pdf.c:4070:2: 
  4068. 	written += t2pWriteFile(output, (tdata_t) buffer,
  4069. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));
  4070. 	written += t2pWriteFile(output, (tdata_t) " 0 R \n", 6);
         ^
  4071. 	if(t2p->pdf_fitwindow){
  4072. 		written += t2pWriteFile(output, 

tools/tiff2pdf.c:373:1: start of procedure t2pWriteFile()
    371. #endif /* OJPEG_SUPPORT */
    372. 
    373. static tmsize_t 
         ^
    374. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    375. {

tools/tiff2pdf.c:376:2: 
    374. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    375. {
    376. 	thandle_t client = TIFFClientdata(tif);
          ^
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    378. 	if (proc)

libtiff/tif_open.c:536:1: start of procedure TIFFClientdata()
      534.  * Return open file's clientdata.
      535.  */
      536. thandle_t
           ^
      537. TIFFClientdata(TIFF* tif)
      538. {

libtiff/tif_open.c:539:2: 
      537. TIFFClientdata(TIFF* tif)
      538. {
      539. 	return (tif->tif_clientdata);
            ^
      540. }
      541. 

libtiff/tif_open.c:540:1: return from a call to TIFFClientdata
      538. {
      539. 	return (tif->tif_clientdata);
      540. }
           ^
      541. 
      542. /*

tools/tiff2pdf.c:377:2: 
    375. {
    376. 	thandle_t client = TIFFClientdata(tif);
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    378. 	if (proc)
    379. 		return proc(client, data, size);

libtiff/tif_open.c:667:1: start of procedure TIFFGetWriteProc()
      665.  * Return pointer to file write method.
      666.  */
      667. TIFFReadWriteProc
           ^
      668. TIFFGetWriteProc(TIFF* tif)
      669. {

libtiff/tif_open.c:670:2: 
      668. TIFFGetWriteProc(TIFF* tif)
      669. {
      670. 	return (tif->tif_writeproc);
            ^
      671. }
      672. 

libtiff/tif_open.c:671:1: return from a call to TIFFGetWriteProc
      669. {
      670. 	return (tif->tif_writeproc);
      671. }
           ^
      672. 
      673. /*

tools/tiff2pdf.c:378:6: Taking false branch
    376. 	thandle_t client = TIFFClientdata(tif);
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    378. 	if (proc)
              ^
    379. 		return proc(client, data, size);
    380. 	return -1;

tools/tiff2pdf.c:380:2: 
    378. 	if (proc)
    379. 		return proc(client, data, size);
    380. 	return -1;
          ^
    381. }
    382. 

tools/tiff2pdf.c:381:1: return from a call to t2pWriteFile
    379. 		return proc(client, data, size);
    380. 	return -1;
    381. }
         ^
    382. 
    383. static uint64

tools/tiff2pdf.c:4071:5: Taking true branch
  4069. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));
  4070. 	written += t2pWriteFile(output, (tdata_t) " 0 R \n", 6);
  4071. 	if(t2p->pdf_fitwindow){
            ^
  4072. 		written += t2pWriteFile(output, 
  4073. 			(tdata_t) "/ViewerPreferences <</FitWindow true>>\n", 

tools/tiff2pdf.c:4072:3: 
  4070. 	written += t2pWriteFile(output, (tdata_t) " 0 R \n", 6);
  4071. 	if(t2p->pdf_fitwindow){
  4072. 		written += t2pWriteFile(output, 
          ^
  4073. 			(tdata_t) "/ViewerPreferences <</FitWindow true>>\n", 
  4074. 			39);

tools/tiff2pdf.c:373:1: start of procedure t2pWriteFile()
    371. #endif /* OJPEG_SUPPORT */
    372. 
    373. static tmsize_t 
         ^
    374. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    375. {

tools/tiff2pdf.c:376:2: 
    374. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    375. {
    376. 	thandle_t client = TIFFClientdata(tif);
          ^
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    378. 	if (proc)

libtiff/tif_open.c:536:1: start of procedure TIFFClientdata()
      534.  * Return open file's clientdata.
      535.  */
      536. thandle_t
           ^
      537. TIFFClientdata(TIFF* tif)
      538. {

libtiff/tif_open.c:539:2: 
      537. TIFFClientdata(TIFF* tif)
      538. {
      539. 	return (tif->tif_clientdata);
            ^
      540. }
      541. 

libtiff/tif_open.c:540:1: return from a call to TIFFClientdata
      538. {
      539. 	return (tif->tif_clientdata);
      540. }
           ^
      541. 
      542. /*

tools/tiff2pdf.c:377:2: 
    375. {
    376. 	thandle_t client = TIFFClientdata(tif);
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    378. 	if (proc)
    379. 		return proc(client, data, size);

libtiff/tif_open.c:667:1: start of procedure TIFFGetWriteProc()
      665.  * Return pointer to file write method.
      666.  */
      667. TIFFReadWriteProc
           ^
      668. TIFFGetWriteProc(TIFF* tif)
      669. {

libtiff/tif_open.c:670:2: 
      668. TIFFGetWriteProc(TIFF* tif)
      669. {
      670. 	return (tif->tif_writeproc);
            ^
      671. }
      672. 

libtiff/tif_open.c:671:1: return from a call to TIFFGetWriteProc
      669. {
      670. 	return (tif->tif_writeproc);
      671. }
           ^
      672. 
      673. /*

tools/tiff2pdf.c:378:6: Taking false branch
    376. 	thandle_t client = TIFFClientdata(tif);
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    378. 	if (proc)
              ^
    379. 		return proc(client, data, size);
    380. 	return -1;

tools/tiff2pdf.c:380:2: 
    378. 	if (proc)
    379. 		return proc(client, data, size);
    380. 	return -1;
          ^
    381. }
    382. 

tools/tiff2pdf.c:381:1: return from a call to t2pWriteFile
    379. 		return proc(client, data, size);
    380. 	return -1;
    381. }
         ^
    382. 
    383. static uint64

tools/tiff2pdf.c:4076:2: 
  4074. 			39);
  4075. 	}
  4076. 	written += t2pWriteFile(output, (tdata_t)">>\n", 3);
         ^
  4077. 
  4078. 	return(written);

tools/tiff2pdf.c:373:1: start of procedure t2pWriteFile()
    371. #endif /* OJPEG_SUPPORT */
    372. 
    373. static tmsize_t 
         ^
    374. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    375. {

tools/tiff2pdf.c:376:2: 
    374. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    375. {
    376. 	thandle_t client = TIFFClientdata(tif);
          ^
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    378. 	if (proc)

libtiff/tif_open.c:536:1: start of procedure TIFFClientdata()
      534.  * Return open file's clientdata.
      535.  */
      536. thandle_t
           ^
      537. TIFFClientdata(TIFF* tif)
      538. {

libtiff/tif_open.c:539:2: 
      537. TIFFClientdata(TIFF* tif)
      538. {
      539. 	return (tif->tif_clientdata);
            ^
      540. }
      541. 

libtiff/tif_open.c:540:1: return from a call to TIFFClientdata
      538. {
      539. 	return (tif->tif_clientdata);
      540. }
           ^
      541. 
      542. /*

tools/tiff2pdf.c:377:2: 
    375. {
    376. 	thandle_t client = TIFFClientdata(tif);
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    378. 	if (proc)
    379. 		return proc(client, data, size);

libtiff/tif_open.c:667:1: start of procedure TIFFGetWriteProc()
      665.  * Return pointer to file write method.
      666.  */
      667. TIFFReadWriteProc
           ^
      668. TIFFGetWriteProc(TIFF* tif)
      669. {

libtiff/tif_open.c:670:2: 
      668. TIFFGetWriteProc(TIFF* tif)
      669. {
      670. 	return (tif->tif_writeproc);
            ^
      671. }
      672. 

libtiff/tif_open.c:671:1: return from a call to TIFFGetWriteProc
      669. {
      670. 	return (tif->tif_writeproc);
      671. }
           ^
      672. 
      673. /*

tools/tiff2pdf.c:378:6: Taking false branch
    376. 	thandle_t client = TIFFClientdata(tif);
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    378. 	if (proc)
              ^
    379. 		return proc(client, data, size);
    380. 	return -1;

tools/tiff2pdf.c:380:2: 
    378. 	if (proc)
    379. 		return proc(client, data, size);
    380. 	return -1;
          ^
    381. }
    382. 

tools/tiff2pdf.c:381:1: return from a call to t2pWriteFile
    379. 		return proc(client, data, size);
    380. 	return -1;
    381. }
         ^
    382. 
    383. static uint64

tools/tiff2pdf.c:4078:2: 
  4076. 	written += t2pWriteFile(output, (tdata_t)">>\n", 3);
  4077. 
  4078. 	return(written);
         ^
  4079. }
  4080. 

tools/tiff2pdf.c:4079:1: return from a call to t2p_write_pdf_catalog
  4077. 
  4078. 	return(written);
  4079. }
        ^
  4080. 
  4081. /*

tools/tiff2pdf.c:5417:2: 
5415. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5416. 	written += t2p_write_pdf_catalog(t2p, output);
5417. 	written += t2p_write_pdf_obj_end(output);
       ^
5418. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5419. 	t2p->pdf_info=t2p->pdf_xrefcount;

tools/tiff2pdf.c:3786:1: start of procedure t2p_write_pdf_obj_end()
  3784. */
  3785. 
  3786. tsize_t t2p_write_pdf_obj_end(TIFF* output){
        ^
  3787. 
  3788. 	tsize_t written=0;

tools/tiff2pdf.c:3788:2: 
  3786. tsize_t t2p_write_pdf_obj_end(TIFF* output){
  3787. 
  3788. 	tsize_t written=0;
         ^
  3789. 
  3790. 	written += t2pWriteFile(output, (tdata_t) "endobj\n", 7);

tools/tiff2pdf.c:3790:2: 
  3788. 	tsize_t written=0;
  3789. 
  3790. 	written += t2pWriteFile(output, (tdata_t) "endobj\n", 7);
         ^
  3791. 
  3792. 	return(written);

tools/tiff2pdf.c:373:1: start of procedure t2pWriteFile()
    371. #endif /* OJPEG_SUPPORT */
    372. 
    373. static tmsize_t 
         ^
    374. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    375. {

tools/tiff2pdf.c:376:2: 
    374. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    375. {
    376. 	thandle_t client = TIFFClientdata(tif);
          ^
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    378. 	if (proc)

libtiff/tif_open.c:536:1: start of procedure TIFFClientdata()
      534.  * Return open file's clientdata.
      535.  */
      536. thandle_t
           ^
      537. TIFFClientdata(TIFF* tif)
      538. {

libtiff/tif_open.c:539:2: 
      537. TIFFClientdata(TIFF* tif)
      538. {
      539. 	return (tif->tif_clientdata);
            ^
      540. }
      541. 

libtiff/tif_open.c:540:1: return from a call to TIFFClientdata
      538. {
      539. 	return (tif->tif_clientdata);
      540. }
           ^
      541. 
      542. /*

tools/tiff2pdf.c:377:2: 
    375. {
    376. 	thandle_t client = TIFFClientdata(tif);
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    378. 	if (proc)
    379. 		return proc(client, data, size);

libtiff/tif_open.c:667:1: start of procedure TIFFGetWriteProc()
      665.  * Return pointer to file write method.
      666.  */
      667. TIFFReadWriteProc
           ^
      668. TIFFGetWriteProc(TIFF* tif)
      669. {

libtiff/tif_open.c:670:2: 
      668. TIFFGetWriteProc(TIFF* tif)
      669. {
      670. 	return (tif->tif_writeproc);
            ^
      671. }
      672. 

libtiff/tif_open.c:671:1: return from a call to TIFFGetWriteProc
      669. {
      670. 	return (tif->tif_writeproc);
      671. }
           ^
      672. 
      673. /*

tools/tiff2pdf.c:378:6: Taking false branch
    376. 	thandle_t client = TIFFClientdata(tif);
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    378. 	if (proc)
              ^
    379. 		return proc(client, data, size);
    380. 	return -1;

tools/tiff2pdf.c:380:2: 
    378. 	if (proc)
    379. 		return proc(client, data, size);
    380. 	return -1;
          ^
    381. }
    382. 

tools/tiff2pdf.c:381:1: return from a call to t2pWriteFile
    379. 		return proc(client, data, size);
    380. 	return -1;
    381. }
         ^
    382. 
    383. static uint64

tools/tiff2pdf.c:3792:2: 
  3790. 	written += t2pWriteFile(output, (tdata_t) "endobj\n", 7);
  3791. 
  3792. 	return(written);
         ^
  3793. }
  3794. 

tools/tiff2pdf.c:3793:1: return from a call to t2p_write_pdf_obj_end
  3791. 
  3792. 	return(written);
  3793. }
        ^
  3794. 
  3795. /*

tools/tiff2pdf.c:5418:2: 
5416. 	written += t2p_write_pdf_catalog(t2p, output);
5417. 	written += t2p_write_pdf_obj_end(output);
5418. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
       ^
5419. 	t2p->pdf_info=t2p->pdf_xrefcount;
5420. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);

tools/tiff2pdf.c:5419:2: 
5417. 	written += t2p_write_pdf_obj_end(output);
5418. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5419. 	t2p->pdf_info=t2p->pdf_xrefcount;
       ^
5420. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5421. 	written += t2p_write_pdf_info(t2p, input, output);

tools/tiff2pdf.c:5420:2: 
5418. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5419. 	t2p->pdf_info=t2p->pdf_xrefcount;
5420. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
       ^
5421. 	written += t2p_write_pdf_info(t2p, input, output);
5422. 	written += t2p_write_pdf_obj_end(output);

tools/tiff2pdf.c:3768:1: start of procedure t2p_write_pdf_obj_start()
  3766. */
  3767. 
  3768. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
        ^
  3769. 
  3770. 	tsize_t written=0;

tools/tiff2pdf.c:3770:2: 
  3768. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
  3769. 
  3770. 	tsize_t written=0;
         ^
  3771. 	char buffer[32];
  3772. 	int buflen=0;

tools/tiff2pdf.c:3772:2: 
  3770. 	tsize_t written=0;
  3771. 	char buffer[32];
  3772. 	int buflen=0;
         ^
  3773. 
  3774. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);

tools/tiff2pdf.c:3774:2: 
  3772. 	int buflen=0;
  3773. 
  3774. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
         ^
  3775. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3776. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );

tools/tiff2pdf.c:3775:2: Taking false branch
  3773. 
  3774. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
  3775. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
         ^
  3776. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
  3777. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);

tools/tiff2pdf.c:3775:2: Taking false branch
  3773. 
  3774. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
  3775. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
         ^
  3776. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
  3777. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);

tools/tiff2pdf.c:3776:2: 
  3774. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
  3775. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3776. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
         ^
  3777. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
  3778. 

tools/tiff2pdf.c:373:1: start of procedure t2pWriteFile()
    371. #endif /* OJPEG_SUPPORT */
    372. 
    373. static tmsize_t 
         ^
    374. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    375. {

tools/tiff2pdf.c:376:2: 
    374. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    375. {
    376. 	thandle_t client = TIFFClientdata(tif);
          ^
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    378. 	if (proc)

libtiff/tif_open.c:536:1: start of procedure TIFFClientdata()
      534.  * Return open file's clientdata.
      535.  */
      536. thandle_t
           ^
      537. TIFFClientdata(TIFF* tif)
      538. {

libtiff/tif_open.c:539:2: 
      537. TIFFClientdata(TIFF* tif)
      538. {
      539. 	return (tif->tif_clientdata);
            ^
      540. }
      541. 

libtiff/tif_open.c:540:1: return from a call to TIFFClientdata
      538. {
      539. 	return (tif->tif_clientdata);
      540. }
           ^
      541. 
      542. /*

tools/tiff2pdf.c:377:2: 
    375. {
    376. 	thandle_t client = TIFFClientdata(tif);
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    378. 	if (proc)
    379. 		return proc(client, data, size);

libtiff/tif_open.c:667:1: start of procedure TIFFGetWriteProc()
      665.  * Return pointer to file write method.
      666.  */
      667. TIFFReadWriteProc
           ^
      668. TIFFGetWriteProc(TIFF* tif)
      669. {

libtiff/tif_open.c:670:2: 
      668. TIFFGetWriteProc(TIFF* tif)
      669. {
      670. 	return (tif->tif_writeproc);
            ^
      671. }
      672. 

libtiff/tif_open.c:671:1: return from a call to TIFFGetWriteProc
      669. {
      670. 	return (tif->tif_writeproc);
      671. }
           ^
      672. 
      673. /*

tools/tiff2pdf.c:378:6: Taking false branch
    376. 	thandle_t client = TIFFClientdata(tif);
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    378. 	if (proc)
              ^
    379. 		return proc(client, data, size);
    380. 	return -1;

tools/tiff2pdf.c:380:2: 
    378. 	if (proc)
    379. 		return proc(client, data, size);
    380. 	return -1;
          ^
    381. }
    382. 

tools/tiff2pdf.c:381:1: return from a call to t2pWriteFile
    379. 		return proc(client, data, size);
    380. 	return -1;
    381. }
         ^
    382. 
    383. static uint64

tools/tiff2pdf.c:3777:2: 
  3775. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3776. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
  3777. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
         ^
  3778. 
  3779. 	return(written);

tools/tiff2pdf.c:373:1: start of procedure t2pWriteFile()
    371. #endif /* OJPEG_SUPPORT */
    372. 
    373. static tmsize_t 
         ^
    374. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    375. {

tools/tiff2pdf.c:376:2: 
    374. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    375. {
    376. 	thandle_t client = TIFFClientdata(tif);
          ^
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    378. 	if (proc)

libtiff/tif_open.c:536:1: start of procedure TIFFClientdata()
      534.  * Return open file's clientdata.
      535.  */
      536. thandle_t
           ^
      537. TIFFClientdata(TIFF* tif)
      538. {

libtiff/tif_open.c:539:2: 
      537. TIFFClientdata(TIFF* tif)
      538. {
      539. 	return (tif->tif_clientdata);
            ^
      540. }
      541. 

libtiff/tif_open.c:540:1: return from a call to TIFFClientdata
      538. {
      539. 	return (tif->tif_clientdata);
      540. }
           ^
      541. 
      542. /*

tools/tiff2pdf.c:377:2: 
    375. {
    376. 	thandle_t client = TIFFClientdata(tif);
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    378. 	if (proc)
    379. 		return proc(client, data, size);

libtiff/tif_open.c:667:1: start of procedure TIFFGetWriteProc()
      665.  * Return pointer to file write method.
      666.  */
      667. TIFFReadWriteProc
           ^
      668. TIFFGetWriteProc(TIFF* tif)
      669. {

libtiff/tif_open.c:670:2: 
      668. TIFFGetWriteProc(TIFF* tif)
      669. {
      670. 	return (tif->tif_writeproc);
            ^
      671. }
      672. 

libtiff/tif_open.c:671:1: return from a call to TIFFGetWriteProc
      669. {
      670. 	return (tif->tif_writeproc);
      671. }
           ^
      672. 
      673. /*

tools/tiff2pdf.c:378:6: Taking false branch
    376. 	thandle_t client = TIFFClientdata(tif);
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    378. 	if (proc)
              ^
    379. 		return proc(client, data, size);
    380. 	return -1;

tools/tiff2pdf.c:380:2: 
    378. 	if (proc)
    379. 		return proc(client, data, size);
    380. 	return -1;
          ^
    381. }
    382. 

tools/tiff2pdf.c:381:1: return from a call to t2pWriteFile
    379. 		return proc(client, data, size);
    380. 	return -1;
    381. }
         ^
    382. 
    383. static uint64

tools/tiff2pdf.c:3779:2: 
  3777. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
  3778. 
  3779. 	return(written);
         ^
  3780. }
  3781. 

tools/tiff2pdf.c:3780:1: return from a call to t2p_write_pdf_obj_start
  3778. 
  3779. 	return(written);
  3780. }
        ^
  3781. 
  3782. /*

tools/tiff2pdf.c:5421:2: Skipping t2p_write_pdf_info(): empty list of specs
5419. 	t2p->pdf_info=t2p->pdf_xrefcount;
5420. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5421. 	written += t2p_write_pdf_info(t2p, input, output);
       ^
5422. 	written += t2p_write_pdf_obj_end(output);
5423. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
