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

tools/tiff2pdf.c:5458:1: start of procedure t2p_write_pdf()
5456. */
5457. 
5458. tsize_t t2p_write_pdf(T2P* t2p, TIFF* input, TIFF* output){
      ^
5459. 
5460. 	tsize_t written=0;

tools/tiff2pdf.c:5460:2: 
5458. tsize_t t2p_write_pdf(T2P* t2p, TIFF* input, TIFF* output){
5459. 
5460. 	tsize_t written=0;
       ^
5461. 	ttile_t i2=0;
5462. 	tsize_t streamlen=0;

tools/tiff2pdf.c:5461:2: 
5459. 
5460. 	tsize_t written=0;
5461. 	ttile_t i2=0;
       ^
5462. 	tsize_t streamlen=0;
5463. 	uint16 i=0;

tools/tiff2pdf.c:5462:2: 
5460. 	tsize_t written=0;
5461. 	ttile_t i2=0;
5462. 	tsize_t streamlen=0;
       ^
5463. 	uint16 i=0;
5464. 

tools/tiff2pdf.c:5463:2: 
5461. 	ttile_t i2=0;
5462. 	tsize_t streamlen=0;
5463. 	uint16 i=0;
       ^
5464. 
5465. 	t2p_read_tiff_init(t2p, input);

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

tools/tiff2pdf.c:5466:5: Taking false branch
5464. 
5465. 	t2p_read_tiff_init(t2p, input);
5466. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
          ^
5467. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
5468. 	if(t2p->pdf_xrefoffsets==NULL){

tools/tiff2pdf.c:5467:46: Condition is true
5465. 	t2p_read_tiff_init(t2p, input);
5466. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5467. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
                                                   ^
5468. 	if(t2p->pdf_xrefoffsets==NULL){
5469. 		TIFFError(

tools/tiff2pdf.c:5467:46: Condition is true
5465. 	t2p_read_tiff_init(t2p, input);
5466. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5467. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
                                                   ^
5468. 	if(t2p->pdf_xrefoffsets==NULL){
5469. 		TIFFError(

tools/tiff2pdf.c:5467:2: 
5465. 	t2p_read_tiff_init(t2p, input);
5466. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5467. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
       ^
5468. 	if(t2p->pdf_xrefoffsets==NULL){
5469. 		TIFFError(

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

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

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

libtiff/tif_unix.c:315:1: return from a call to _TIFFmalloc
  313. 
  314. 	return (malloc((size_t) s));
  315. }
       ^
  316. 
  317. void* _TIFFcalloc(tmsize_t nmemb, tmsize_t siz)

tools/tiff2pdf.c:5468:5: Taking false branch
5466. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5467. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
5468. 	if(t2p->pdf_xrefoffsets==NULL){
          ^
5469. 		TIFFError(
5470. 			TIFF2PDF_MODULE, 

tools/tiff2pdf.c:5476:2: 
5474. 		return(written);
5475. 	}
5476. 	t2p->pdf_xrefcount=0;
       ^
5477. 	t2p->pdf_catalog=1;
5478. 	t2p->pdf_info=2;

tools/tiff2pdf.c:5477:2: 
5475. 	}
5476. 	t2p->pdf_xrefcount=0;
5477. 	t2p->pdf_catalog=1;
       ^
5478. 	t2p->pdf_info=2;
5479. 	t2p->pdf_pages=3;

tools/tiff2pdf.c:5478:2: 
5476. 	t2p->pdf_xrefcount=0;
5477. 	t2p->pdf_catalog=1;
5478. 	t2p->pdf_info=2;
       ^
5479. 	t2p->pdf_pages=3;
5480. 	written += t2p_write_pdf_header(t2p, output);

tools/tiff2pdf.c:5479:2: 
5477. 	t2p->pdf_catalog=1;
5478. 	t2p->pdf_info=2;
5479. 	t2p->pdf_pages=3;
       ^
5480. 	written += t2p_write_pdf_header(t2p, output);
5481. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;

tools/tiff2pdf.c:5480:2: 
5478. 	t2p->pdf_info=2;
5479. 	t2p->pdf_pages=3;
5480. 	written += t2p_write_pdf_header(t2p, output);
       ^
5481. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5482. 	t2p->pdf_catalog=t2p->pdf_xrefcount;

tools/tiff2pdf.c:3816:1: start of procedure t2p_write_pdf_header()
  3814. */
  3815. 
  3816. tsize_t t2p_write_pdf_header(T2P* t2p, TIFF* output){
        ^
  3817. 
  3818. 	tsize_t written=0;

tools/tiff2pdf.c:3818:2: 
  3816. tsize_t t2p_write_pdf_header(T2P* t2p, TIFF* output){
  3817. 
  3818. 	tsize_t written=0;
         ^
  3819. 	char buffer[16];
  3820. 	int buflen=0;

tools/tiff2pdf.c:3820:2: 
  3818. 	tsize_t written=0;
  3819. 	char buffer[16];
  3820. 	int buflen=0;
         ^
  3821. 	
  3822. 	buflen = snprintf(buffer, sizeof(buffer), "%%PDF-%u.%u ",

tools/tiff2pdf.c:3822:2: 
  3820. 	int buflen=0;
  3821. 	
  3822. 	buflen = snprintf(buffer, sizeof(buffer), "%%PDF-%u.%u ",
         ^
  3823. 			  t2p->pdf_majorversion&0xff,
  3824. 			  t2p->pdf_minorversion&0xff);

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

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

tools/tiff2pdf.c:3826:2: 
  3824. 			  t2p->pdf_minorversion&0xff);
  3825. 	check_snprintf_ret(t2p, buflen, buffer);
  3826. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen);
         ^
  3827. 	written += t2pWriteFile(output, (tdata_t)"\n%\342\343\317\323\n", 7);
  3828. 

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

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

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

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

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

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

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

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

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

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

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

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

tools/tiff2pdf.c:3827:2: 
  3825. 	check_snprintf_ret(t2p, buflen, buffer);
  3826. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen);
  3827. 	written += t2pWriteFile(output, (tdata_t)"\n%\342\343\317\323\n", 7);
         ^
  3828. 
  3829. 	return(written);

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

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

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

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

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

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

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

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

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

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

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

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

tools/tiff2pdf.c:3829:2: 
  3827. 	written += t2pWriteFile(output, (tdata_t)"\n%\342\343\317\323\n", 7);
  3828. 
  3829. 	return(written);
         ^
  3830. }
  3831. 

tools/tiff2pdf.c:3830:1: return from a call to t2p_write_pdf_header
  3828. 
  3829. 	return(written);
  3830. }
        ^
  3831. 
  3832. /*

tools/tiff2pdf.c:5481:2: 
5479. 	t2p->pdf_pages=3;
5480. 	written += t2p_write_pdf_header(t2p, output);
5481. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
       ^
5482. 	t2p->pdf_catalog=t2p->pdf_xrefcount;
5483. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);

tools/tiff2pdf.c:5482:2: 
5480. 	written += t2p_write_pdf_header(t2p, output);
5481. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5482. 	t2p->pdf_catalog=t2p->pdf_xrefcount;
       ^
5483. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5484. 	written += t2p_write_pdf_catalog(t2p, output);

tools/tiff2pdf.c:5483:2: 
5481. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5482. 	t2p->pdf_catalog=t2p->pdf_xrefcount;
5483. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
       ^
5484. 	written += t2p_write_pdf_catalog(t2p, output);
5485. 	written += t2p_write_pdf_obj_end(output);

tools/tiff2pdf.c:3836:1: start of procedure t2p_write_pdf_obj_start()
  3834. */
  3835. 
  3836. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
        ^
  3837. 
  3838. 	tsize_t written=0;

tools/tiff2pdf.c:3838:2: 
  3836. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
  3837. 
  3838. 	tsize_t written=0;
         ^
  3839. 	char buffer[32];
  3840. 	int buflen=0;

tools/tiff2pdf.c:3840:2: 
  3838. 	tsize_t written=0;
  3839. 	char buffer[32];
  3840. 	int buflen=0;
         ^
  3841. 
  3842. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);

tools/tiff2pdf.c:3842:2: 
  3840. 	int buflen=0;
  3841. 
  3842. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
         ^
  3843. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3844. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );

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

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

tools/tiff2pdf.c:3844:2: 
  3842. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
  3843. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3844. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
         ^
  3845. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
  3846. 

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

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

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

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

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

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

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

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

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

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

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

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

tools/tiff2pdf.c:3845:2: 
  3843. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3844. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
  3845. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
         ^
  3846. 
  3847. 	return(written);

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

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

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

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

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

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

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

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

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

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

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

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

tools/tiff2pdf.c:3847:2: 
  3845. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
  3846. 
  3847. 	return(written);
         ^
  3848. }
  3849. 

tools/tiff2pdf.c:3848:1: return from a call to t2p_write_pdf_obj_start
  3846. 
  3847. 	return(written);
  3848. }
        ^
  3849. 
  3850. /*

tools/tiff2pdf.c:5484:2: 
5482. 	t2p->pdf_catalog=t2p->pdf_xrefcount;
5483. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5484. 	written += t2p_write_pdf_catalog(t2p, output);
       ^
5485. 	written += t2p_write_pdf_obj_end(output);
5486. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;

tools/tiff2pdf.c:4125:1: start of procedure t2p_write_pdf_catalog()
  4123.  */
  4124. 
  4125. tsize_t t2p_write_pdf_catalog(T2P* t2p, TIFF* output)
        ^
  4126. {
  4127. 	tsize_t written = 0;

tools/tiff2pdf.c:4127:2: 
  4125. tsize_t t2p_write_pdf_catalog(T2P* t2p, TIFF* output)
  4126. {
  4127. 	tsize_t written = 0;
         ^
  4128. 	char buffer[32];
  4129. 	int buflen = 0;

tools/tiff2pdf.c:4129:2: 
  4127. 	tsize_t written = 0;
  4128. 	char buffer[32];
  4129. 	int buflen = 0;
         ^
  4130. 
  4131. 	written += t2pWriteFile(output, 

tools/tiff2pdf.c:4131:2: 
  4129. 	int buflen = 0;
  4130. 
  4131. 	written += t2pWriteFile(output, 
         ^
  4132. 		(tdata_t)"<< \n/Type /Catalog \n/Pages ", 
  4133. 		27);

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

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

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

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

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

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

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

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

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

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

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

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

tools/tiff2pdf.c:4134:2: 
  4132. 		(tdata_t)"<< \n/Type /Catalog \n/Pages ", 
  4133. 		27);
  4134. 	buflen = snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)t2p->pdf_pages);
         ^
  4135. 	check_snprintf_ret(t2p, buflen, buffer);
  4136. 	written += t2pWriteFile(output, (tdata_t) buffer,

tools/tiff2pdf.c:4135:2: Taking false branch
  4133. 		27);
  4134. 	buflen = snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)t2p->pdf_pages);
  4135. 	check_snprintf_ret(t2p, buflen, buffer);
         ^
  4136. 	written += t2pWriteFile(output, (tdata_t) buffer,
  4137. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));

tools/tiff2pdf.c:4135:2: Taking false branch
  4133. 		27);
  4134. 	buflen = snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)t2p->pdf_pages);
  4135. 	check_snprintf_ret(t2p, buflen, buffer);
         ^
  4136. 	written += t2pWriteFile(output, (tdata_t) buffer,
  4137. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));

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

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

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

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

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

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

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

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

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

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

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

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

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

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

tools/tiff2pdf.c:4138:2: 
  4136. 	written += t2pWriteFile(output, (tdata_t) buffer,
  4137. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));
  4138. 	written += t2pWriteFile(output, (tdata_t) " 0 R \n", 6);
         ^
  4139. 	if(t2p->pdf_fitwindow){
  4140. 		written += t2pWriteFile(output, 

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

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

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

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

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

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

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

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

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

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

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

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

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

tools/tiff2pdf.c:4140:3: 
  4138. 	written += t2pWriteFile(output, (tdata_t) " 0 R \n", 6);
  4139. 	if(t2p->pdf_fitwindow){
  4140. 		written += t2pWriteFile(output, 
          ^
  4141. 			(tdata_t) "/ViewerPreferences <</FitWindow true>>\n", 
  4142. 			39);

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

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

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

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

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

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

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

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

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

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

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

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

tools/tiff2pdf.c:4144:2: 
  4142. 			39);
  4143. 	}
  4144. 	written += t2pWriteFile(output, (tdata_t)">>\n", 3);
         ^
  4145. 
  4146. 	return(written);

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

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

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

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

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

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

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

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

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

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

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

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

tools/tiff2pdf.c:4146:2: 
  4144. 	written += t2pWriteFile(output, (tdata_t)">>\n", 3);
  4145. 
  4146. 	return(written);
         ^
  4147. }
  4148. 

tools/tiff2pdf.c:4147:1: return from a call to t2p_write_pdf_catalog
  4145. 
  4146. 	return(written);
  4147. }
        ^
  4148. 
  4149. /*

tools/tiff2pdf.c:5485:2: 
5483. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5484. 	written += t2p_write_pdf_catalog(t2p, output);
5485. 	written += t2p_write_pdf_obj_end(output);
       ^
5486. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5487. 	t2p->pdf_info=t2p->pdf_xrefcount;

tools/tiff2pdf.c:3854:1: start of procedure t2p_write_pdf_obj_end()
  3852. */
  3853. 
  3854. tsize_t t2p_write_pdf_obj_end(TIFF* output){
        ^
  3855. 
  3856. 	tsize_t written=0;

tools/tiff2pdf.c:3856:2: 
  3854. tsize_t t2p_write_pdf_obj_end(TIFF* output){
  3855. 
  3856. 	tsize_t written=0;
         ^
  3857. 
  3858. 	written += t2pWriteFile(output, (tdata_t) "endobj\n", 7);

tools/tiff2pdf.c:3858:2: 
  3856. 	tsize_t written=0;
  3857. 
  3858. 	written += t2pWriteFile(output, (tdata_t) "endobj\n", 7);
         ^
  3859. 
  3860. 	return(written);

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

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

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

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

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

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

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

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

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

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

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

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

tools/tiff2pdf.c:3860:2: 
  3858. 	written += t2pWriteFile(output, (tdata_t) "endobj\n", 7);
  3859. 
  3860. 	return(written);
         ^
  3861. }
  3862. 

tools/tiff2pdf.c:3861:1: return from a call to t2p_write_pdf_obj_end
  3859. 
  3860. 	return(written);
  3861. }
        ^
  3862. 
  3863. /*

tools/tiff2pdf.c:5486:2: 
5484. 	written += t2p_write_pdf_catalog(t2p, output);
5485. 	written += t2p_write_pdf_obj_end(output);
5486. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
       ^
5487. 	t2p->pdf_info=t2p->pdf_xrefcount;
5488. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);

tools/tiff2pdf.c:5487:2: 
5485. 	written += t2p_write_pdf_obj_end(output);
5486. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5487. 	t2p->pdf_info=t2p->pdf_xrefcount;
       ^
5488. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5489. 	written += t2p_write_pdf_info(t2p, input, output);

tools/tiff2pdf.c:5488:2: 
5486. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5487. 	t2p->pdf_info=t2p->pdf_xrefcount;
5488. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
       ^
5489. 	written += t2p_write_pdf_info(t2p, input, output);
5490. 	written += t2p_write_pdf_obj_end(output);

tools/tiff2pdf.c:3836:1: start of procedure t2p_write_pdf_obj_start()
  3834. */
  3835. 
  3836. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
        ^
  3837. 
  3838. 	tsize_t written=0;

tools/tiff2pdf.c:3838:2: 
  3836. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
  3837. 
  3838. 	tsize_t written=0;
         ^
  3839. 	char buffer[32];
  3840. 	int buflen=0;

tools/tiff2pdf.c:3840:2: 
  3838. 	tsize_t written=0;
  3839. 	char buffer[32];
  3840. 	int buflen=0;
         ^
  3841. 
  3842. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);

tools/tiff2pdf.c:3842:2: 
  3840. 	int buflen=0;
  3841. 
  3842. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
         ^
  3843. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3844. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );

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

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

tools/tiff2pdf.c:3844:2: 
  3842. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
  3843. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3844. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
         ^
  3845. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
  3846. 

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

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

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

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

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

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

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

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

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

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

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

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

tools/tiff2pdf.c:3845:2: 
  3843. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3844. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
  3845. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
         ^
  3846. 
  3847. 	return(written);

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

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

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

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

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

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

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

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

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

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

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

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

tools/tiff2pdf.c:3847:2: 
  3845. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
  3846. 
  3847. 	return(written);
         ^
  3848. }
  3849. 

tools/tiff2pdf.c:3848:1: return from a call to t2p_write_pdf_obj_start
  3846. 
  3847. 	return(written);
  3848. }
        ^
  3849. 
  3850. /*

tools/tiff2pdf.c:5489:2: Skipping t2p_write_pdf_info(): empty list of specs
5487. 	t2p->pdf_info=t2p->pdf_xrefcount;
5488. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5489. 	written += t2p_write_pdf_info(t2p, input, output);
       ^
5490. 	written += t2p_write_pdf_obj_end(output);
5491. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
