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

tools/tiff2pdf.c:5448:1: start of procedure t2p_write_pdf()
5446. */
5447. 
5448. tsize_t t2p_write_pdf(T2P* t2p, TIFF* input, TIFF* output){
      ^
5449. 
5450. 	tsize_t written=0;

tools/tiff2pdf.c:5450:2: 
5448. tsize_t t2p_write_pdf(T2P* t2p, TIFF* input, TIFF* output){
5449. 
5450. 	tsize_t written=0;
       ^
5451. 	ttile_t i2=0;
5452. 	tsize_t streamlen=0;

tools/tiff2pdf.c:5451:2: 
5449. 
5450. 	tsize_t written=0;
5451. 	ttile_t i2=0;
       ^
5452. 	tsize_t streamlen=0;
5453. 	uint16 i=0;

tools/tiff2pdf.c:5452:2: 
5450. 	tsize_t written=0;
5451. 	ttile_t i2=0;
5452. 	tsize_t streamlen=0;
       ^
5453. 	uint16 i=0;
5454. 

tools/tiff2pdf.c:5453:2: 
5451. 	ttile_t i2=0;
5452. 	tsize_t streamlen=0;
5453. 	uint16 i=0;
       ^
5454. 
5455. 	t2p_read_tiff_init(t2p, input);

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

tools/tiff2pdf.c:5456:5: Taking false branch
5454. 
5455. 	t2p_read_tiff_init(t2p, input);
5456. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
          ^
5457. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
5458. 	if(t2p->pdf_xrefoffsets==NULL){

tools/tiff2pdf.c:5457:46: Condition is true
5455. 	t2p_read_tiff_init(t2p, input);
5456. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5457. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
                                                   ^
5458. 	if(t2p->pdf_xrefoffsets==NULL){
5459. 		TIFFError(

tools/tiff2pdf.c:5457:46: Condition is true
5455. 	t2p_read_tiff_init(t2p, input);
5456. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5457. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
                                                   ^
5458. 	if(t2p->pdf_xrefoffsets==NULL){
5459. 		TIFFError(

tools/tiff2pdf.c:5457:2: 
5455. 	t2p_read_tiff_init(t2p, input);
5456. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5457. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
       ^
5458. 	if(t2p->pdf_xrefoffsets==NULL){
5459. 		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:5458:5: Taking false branch
5456. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5457. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
5458. 	if(t2p->pdf_xrefoffsets==NULL){
          ^
5459. 		TIFFError(
5460. 			TIFF2PDF_MODULE, 

tools/tiff2pdf.c:5466:2: 
5464. 		return(written);
5465. 	}
5466. 	t2p->pdf_xrefcount=0;
       ^
5467. 	t2p->pdf_catalog=1;
5468. 	t2p->pdf_info=2;

tools/tiff2pdf.c:5467:2: 
5465. 	}
5466. 	t2p->pdf_xrefcount=0;
5467. 	t2p->pdf_catalog=1;
       ^
5468. 	t2p->pdf_info=2;
5469. 	t2p->pdf_pages=3;

tools/tiff2pdf.c:5468:2: 
5466. 	t2p->pdf_xrefcount=0;
5467. 	t2p->pdf_catalog=1;
5468. 	t2p->pdf_info=2;
       ^
5469. 	t2p->pdf_pages=3;
5470. 	written += t2p_write_pdf_header(t2p, output);

tools/tiff2pdf.c:5469:2: 
5467. 	t2p->pdf_catalog=1;
5468. 	t2p->pdf_info=2;
5469. 	t2p->pdf_pages=3;
       ^
5470. 	written += t2p_write_pdf_header(t2p, output);
5471. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;

tools/tiff2pdf.c:5470:2: 
5468. 	t2p->pdf_info=2;
5469. 	t2p->pdf_pages=3;
5470. 	written += t2p_write_pdf_header(t2p, output);
       ^
5471. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5472. 	t2p->pdf_catalog=t2p->pdf_xrefcount;

tools/tiff2pdf.c:3806:1: start of procedure t2p_write_pdf_header()
  3804. */
  3805. 
  3806. tsize_t t2p_write_pdf_header(T2P* t2p, TIFF* output){
        ^
  3807. 
  3808. 	tsize_t written=0;

tools/tiff2pdf.c:3808:2: 
  3806. tsize_t t2p_write_pdf_header(T2P* t2p, TIFF* output){
  3807. 
  3808. 	tsize_t written=0;
         ^
  3809. 	char buffer[16];
  3810. 	int buflen=0;

tools/tiff2pdf.c:3810:2: 
  3808. 	tsize_t written=0;
  3809. 	char buffer[16];
  3810. 	int buflen=0;
         ^
  3811. 	
  3812. 	buflen = snprintf(buffer, sizeof(buffer), "%%PDF-%u.%u ",

tools/tiff2pdf.c:3812:2: 
  3810. 	int buflen=0;
  3811. 	
  3812. 	buflen = snprintf(buffer, sizeof(buffer), "%%PDF-%u.%u ",
         ^
  3813. 			  t2p->pdf_majorversion&0xff,
  3814. 			  t2p->pdf_minorversion&0xff);

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

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

tools/tiff2pdf.c:3816:2: 
  3814. 			  t2p->pdf_minorversion&0xff);
  3815. 	check_snprintf_ret(t2p, buflen, buffer);
  3816. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen);
         ^
  3817. 	written += t2pWriteFile(output, (tdata_t)"\n%\342\343\317\323\n", 7);
  3818. 

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: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: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: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: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:3817:2: 
  3815. 	check_snprintf_ret(t2p, buflen, buffer);
  3816. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen);
  3817. 	written += t2pWriteFile(output, (tdata_t)"\n%\342\343\317\323\n", 7);
         ^
  3818. 
  3819. 	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: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: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: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: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:3819:2: 
  3817. 	written += t2pWriteFile(output, (tdata_t)"\n%\342\343\317\323\n", 7);
  3818. 
  3819. 	return(written);
         ^
  3820. }
  3821. 

tools/tiff2pdf.c:3820:1: return from a call to t2p_write_pdf_header
  3818. 
  3819. 	return(written);
  3820. }
        ^
  3821. 
  3822. /*

tools/tiff2pdf.c:5471:2: 
5469. 	t2p->pdf_pages=3;
5470. 	written += t2p_write_pdf_header(t2p, output);
5471. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
       ^
5472. 	t2p->pdf_catalog=t2p->pdf_xrefcount;
5473. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);

tools/tiff2pdf.c:5472:2: 
5470. 	written += t2p_write_pdf_header(t2p, output);
5471. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5472. 	t2p->pdf_catalog=t2p->pdf_xrefcount;
       ^
5473. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5474. 	written += t2p_write_pdf_catalog(t2p, output);

tools/tiff2pdf.c:5473:2: 
5471. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5472. 	t2p->pdf_catalog=t2p->pdf_xrefcount;
5473. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
       ^
5474. 	written += t2p_write_pdf_catalog(t2p, output);
5475. 	written += t2p_write_pdf_obj_end(output);

tools/tiff2pdf.c:3826:1: start of procedure t2p_write_pdf_obj_start()
  3824. */
  3825. 
  3826. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
        ^
  3827. 
  3828. 	tsize_t written=0;

tools/tiff2pdf.c:3828:2: 
  3826. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
  3827. 
  3828. 	tsize_t written=0;
         ^
  3829. 	char buffer[32];
  3830. 	int buflen=0;

tools/tiff2pdf.c:3830:2: 
  3828. 	tsize_t written=0;
  3829. 	char buffer[32];
  3830. 	int buflen=0;
         ^
  3831. 
  3832. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);

tools/tiff2pdf.c:3832:2: 
  3830. 	int buflen=0;
  3831. 
  3832. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
         ^
  3833. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3834. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );

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

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

tools/tiff2pdf.c:3834:2: 
  3832. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
  3833. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3834. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
         ^
  3835. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
  3836. 

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: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: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: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: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:3835:2: 
  3833. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3834. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
  3835. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
         ^
  3836. 
  3837. 	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: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: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: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: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:3837:2: 
  3835. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
  3836. 
  3837. 	return(written);
         ^
  3838. }
  3839. 

tools/tiff2pdf.c:3838:1: return from a call to t2p_write_pdf_obj_start
  3836. 
  3837. 	return(written);
  3838. }
        ^
  3839. 
  3840. /*

tools/tiff2pdf.c:5474:2: 
5472. 	t2p->pdf_catalog=t2p->pdf_xrefcount;
5473. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5474. 	written += t2p_write_pdf_catalog(t2p, output);
       ^
5475. 	written += t2p_write_pdf_obj_end(output);
5476. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;

tools/tiff2pdf.c:4115:1: start of procedure t2p_write_pdf_catalog()
  4113.  */
  4114. 
  4115. tsize_t t2p_write_pdf_catalog(T2P* t2p, TIFF* output)
        ^
  4116. {
  4117. 	tsize_t written = 0;

tools/tiff2pdf.c:4117:2: 
  4115. tsize_t t2p_write_pdf_catalog(T2P* t2p, TIFF* output)
  4116. {
  4117. 	tsize_t written = 0;
         ^
  4118. 	char buffer[32];
  4119. 	int buflen = 0;

tools/tiff2pdf.c:4119:2: 
  4117. 	tsize_t written = 0;
  4118. 	char buffer[32];
  4119. 	int buflen = 0;
         ^
  4120. 
  4121. 	written += t2pWriteFile(output, 

tools/tiff2pdf.c:4121:2: 
  4119. 	int buflen = 0;
  4120. 
  4121. 	written += t2pWriteFile(output, 
         ^
  4122. 		(tdata_t)"<< \n/Type /Catalog \n/Pages ", 
  4123. 		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: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: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: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: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:4124:2: 
  4122. 		(tdata_t)"<< \n/Type /Catalog \n/Pages ", 
  4123. 		27);
  4124. 	buflen = snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)t2p->pdf_pages);
         ^
  4125. 	check_snprintf_ret(t2p, buflen, buffer);
  4126. 	written += t2pWriteFile(output, (tdata_t) buffer,

tools/tiff2pdf.c:4125:2: Taking false branch
  4123. 		27);
  4124. 	buflen = snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)t2p->pdf_pages);
  4125. 	check_snprintf_ret(t2p, buflen, buffer);
         ^
  4126. 	written += t2pWriteFile(output, (tdata_t) buffer,
  4127. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));

tools/tiff2pdf.c:4125:2: Taking false branch
  4123. 		27);
  4124. 	buflen = snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)t2p->pdf_pages);
  4125. 	check_snprintf_ret(t2p, buflen, buffer);
         ^
  4126. 	written += t2pWriteFile(output, (tdata_t) buffer,
  4127. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));

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

tools/tiff2pdf.c:4126:2: 
  4124. 	buflen = snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)t2p->pdf_pages);
  4125. 	check_snprintf_ret(t2p, buflen, buffer);
  4126. 	written += t2pWriteFile(output, (tdata_t) buffer,
         ^
  4127. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));
  4128. 	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: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: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: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: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:4128:2: 
  4126. 	written += t2pWriteFile(output, (tdata_t) buffer,
  4127. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));
  4128. 	written += t2pWriteFile(output, (tdata_t) " 0 R \n", 6);
         ^
  4129. 	if(t2p->pdf_fitwindow){
  4130. 		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: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: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: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: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:4129:5: Taking true branch
  4127. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));
  4128. 	written += t2pWriteFile(output, (tdata_t) " 0 R \n", 6);
  4129. 	if(t2p->pdf_fitwindow){
            ^
  4130. 		written += t2pWriteFile(output, 
  4131. 			(tdata_t) "/ViewerPreferences <</FitWindow true>>\n", 

tools/tiff2pdf.c:4130:3: 
  4128. 	written += t2pWriteFile(output, (tdata_t) " 0 R \n", 6);
  4129. 	if(t2p->pdf_fitwindow){
  4130. 		written += t2pWriteFile(output, 
          ^
  4131. 			(tdata_t) "/ViewerPreferences <</FitWindow true>>\n", 
  4132. 			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: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: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: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: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:4134:2: 
  4132. 			39);
  4133. 	}
  4134. 	written += t2pWriteFile(output, (tdata_t)">>\n", 3);
         ^
  4135. 
  4136. 	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: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: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: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: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:4136:2: 
  4134. 	written += t2pWriteFile(output, (tdata_t)">>\n", 3);
  4135. 
  4136. 	return(written);
         ^
  4137. }
  4138. 

tools/tiff2pdf.c:4137:1: return from a call to t2p_write_pdf_catalog
  4135. 
  4136. 	return(written);
  4137. }
        ^
  4138. 
  4139. /*

tools/tiff2pdf.c:5475:2: 
5473. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5474. 	written += t2p_write_pdf_catalog(t2p, output);
5475. 	written += t2p_write_pdf_obj_end(output);
       ^
5476. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5477. 	t2p->pdf_info=t2p->pdf_xrefcount;

tools/tiff2pdf.c:3844:1: start of procedure t2p_write_pdf_obj_end()
  3842. */
  3843. 
  3844. tsize_t t2p_write_pdf_obj_end(TIFF* output){
        ^
  3845. 
  3846. 	tsize_t written=0;

tools/tiff2pdf.c:3846:2: 
  3844. tsize_t t2p_write_pdf_obj_end(TIFF* output){
  3845. 
  3846. 	tsize_t written=0;
         ^
  3847. 
  3848. 	written += t2pWriteFile(output, (tdata_t) "endobj\n", 7);

tools/tiff2pdf.c:3848:2: 
  3846. 	tsize_t written=0;
  3847. 
  3848. 	written += t2pWriteFile(output, (tdata_t) "endobj\n", 7);
         ^
  3849. 
  3850. 	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: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: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: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: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:3850:2: 
  3848. 	written += t2pWriteFile(output, (tdata_t) "endobj\n", 7);
  3849. 
  3850. 	return(written);
         ^
  3851. }
  3852. 

tools/tiff2pdf.c:3851:1: return from a call to t2p_write_pdf_obj_end
  3849. 
  3850. 	return(written);
  3851. }
        ^
  3852. 
  3853. /*

tools/tiff2pdf.c:5476:2: 
5474. 	written += t2p_write_pdf_catalog(t2p, output);
5475. 	written += t2p_write_pdf_obj_end(output);
5476. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
       ^
5477. 	t2p->pdf_info=t2p->pdf_xrefcount;
5478. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);

tools/tiff2pdf.c:5477:2: 
5475. 	written += t2p_write_pdf_obj_end(output);
5476. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5477. 	t2p->pdf_info=t2p->pdf_xrefcount;
       ^
5478. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5479. 	written += t2p_write_pdf_info(t2p, input, output);

tools/tiff2pdf.c:5478:2: 
5476. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5477. 	t2p->pdf_info=t2p->pdf_xrefcount;
5478. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
       ^
5479. 	written += t2p_write_pdf_info(t2p, input, output);
5480. 	written += t2p_write_pdf_obj_end(output);

tools/tiff2pdf.c:3826:1: start of procedure t2p_write_pdf_obj_start()
  3824. */
  3825. 
  3826. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
        ^
  3827. 
  3828. 	tsize_t written=0;

tools/tiff2pdf.c:3828:2: 
  3826. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
  3827. 
  3828. 	tsize_t written=0;
         ^
  3829. 	char buffer[32];
  3830. 	int buflen=0;

tools/tiff2pdf.c:3830:2: 
  3828. 	tsize_t written=0;
  3829. 	char buffer[32];
  3830. 	int buflen=0;
         ^
  3831. 
  3832. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);

tools/tiff2pdf.c:3832:2: 
  3830. 	int buflen=0;
  3831. 
  3832. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
         ^
  3833. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3834. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );

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

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

tools/tiff2pdf.c:3834:2: 
  3832. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
  3833. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3834. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
         ^
  3835. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
  3836. 

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: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: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: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: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:3835:2: 
  3833. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3834. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
  3835. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
         ^
  3836. 
  3837. 	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: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: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: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: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:3837:2: 
  3835. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
  3836. 
  3837. 	return(written);
         ^
  3838. }
  3839. 

tools/tiff2pdf.c:3838:1: return from a call to t2p_write_pdf_obj_start
  3836. 
  3837. 	return(written);
  3838. }
        ^
  3839. 
  3840. /*

tools/tiff2pdf.c:5479:2: Skipping t2p_write_pdf_info(): empty list of specs
5477. 	t2p->pdf_info=t2p->pdf_xrefcount;
5478. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5479. 	written += t2p_write_pdf_info(t2p, input, output);
       ^
5480. 	written += t2p_write_pdf_obj_end(output);
5481. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
