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

tools/tiff2pdf.c:5498:1: start of procedure t2p_write_pdf()
5496. */
5497. 
5498. tsize_t t2p_write_pdf(T2P* t2p, TIFF* input, TIFF* output){
      ^
5499. 
5500. 	tsize_t written=0;

tools/tiff2pdf.c:5500:2: 
5498. tsize_t t2p_write_pdf(T2P* t2p, TIFF* input, TIFF* output){
5499. 
5500. 	tsize_t written=0;
       ^
5501. 	ttile_t i2=0;
5502. 	tsize_t streamlen=0;

tools/tiff2pdf.c:5501:2: 
5499. 
5500. 	tsize_t written=0;
5501. 	ttile_t i2=0;
       ^
5502. 	tsize_t streamlen=0;
5503. 	uint16 i=0;

tools/tiff2pdf.c:5502:2: 
5500. 	tsize_t written=0;
5501. 	ttile_t i2=0;
5502. 	tsize_t streamlen=0;
       ^
5503. 	uint16 i=0;
5504. 

tools/tiff2pdf.c:5503:2: 
5501. 	ttile_t i2=0;
5502. 	tsize_t streamlen=0;
5503. 	uint16 i=0;
       ^
5504. 
5505. 	t2p_read_tiff_init(t2p, input);

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

tools/tiff2pdf.c:5506:5: Taking false branch
5504. 
5505. 	t2p_read_tiff_init(t2p, input);
5506. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
          ^
5507. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
5508. 	if(t2p->pdf_xrefoffsets==NULL){

tools/tiff2pdf.c:5507:46: Condition is true
5505. 	t2p_read_tiff_init(t2p, input);
5506. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5507. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
                                                   ^
5508. 	if(t2p->pdf_xrefoffsets==NULL){
5509. 		TIFFError(

tools/tiff2pdf.c:5507:46: Condition is true
5505. 	t2p_read_tiff_init(t2p, input);
5506. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5507. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
                                                   ^
5508. 	if(t2p->pdf_xrefoffsets==NULL){
5509. 		TIFFError(

tools/tiff2pdf.c:5507:2: 
5505. 	t2p_read_tiff_init(t2p, input);
5506. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5507. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
       ^
5508. 	if(t2p->pdf_xrefoffsets==NULL){
5509. 		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:5508:5: Taking false branch
5506. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5507. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
5508. 	if(t2p->pdf_xrefoffsets==NULL){
          ^
5509. 		TIFFError(
5510. 			TIFF2PDF_MODULE, 

tools/tiff2pdf.c:5516:2: 
5514. 		return(written);
5515. 	}
5516. 	t2p->pdf_xrefcount=0;
       ^
5517. 	t2p->pdf_catalog=1;
5518. 	t2p->pdf_info=2;

tools/tiff2pdf.c:5517:2: 
5515. 	}
5516. 	t2p->pdf_xrefcount=0;
5517. 	t2p->pdf_catalog=1;
       ^
5518. 	t2p->pdf_info=2;
5519. 	t2p->pdf_pages=3;

tools/tiff2pdf.c:5518:2: 
5516. 	t2p->pdf_xrefcount=0;
5517. 	t2p->pdf_catalog=1;
5518. 	t2p->pdf_info=2;
       ^
5519. 	t2p->pdf_pages=3;
5520. 	written += t2p_write_pdf_header(t2p, output);

tools/tiff2pdf.c:5519:2: 
5517. 	t2p->pdf_catalog=1;
5518. 	t2p->pdf_info=2;
5519. 	t2p->pdf_pages=3;
       ^
5520. 	written += t2p_write_pdf_header(t2p, output);
5521. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;

tools/tiff2pdf.c:5520:2: 
5518. 	t2p->pdf_info=2;
5519. 	t2p->pdf_pages=3;
5520. 	written += t2p_write_pdf_header(t2p, output);
       ^
5521. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5522. 	t2p->pdf_catalog=t2p->pdf_xrefcount;

tools/tiff2pdf.c:3861:1: start of procedure t2p_write_pdf_header()
  3859. */
  3860. 
  3861. tsize_t t2p_write_pdf_header(T2P* t2p, TIFF* output){
        ^
  3862. 
  3863. 	tsize_t written=0;

tools/tiff2pdf.c:3863:2: 
  3861. tsize_t t2p_write_pdf_header(T2P* t2p, TIFF* output){
  3862. 
  3863. 	tsize_t written=0;
         ^
  3864. 	char buffer[16];
  3865. 	int buflen=0;

tools/tiff2pdf.c:3865:2: 
  3863. 	tsize_t written=0;
  3864. 	char buffer[16];
  3865. 	int buflen=0;
         ^
  3866. 	
  3867. 	buflen = snprintf(buffer, sizeof(buffer), "%%PDF-%u.%u ",

tools/tiff2pdf.c:3867:2: 
  3865. 	int buflen=0;
  3866. 	
  3867. 	buflen = snprintf(buffer, sizeof(buffer), "%%PDF-%u.%u ",
         ^
  3868. 			  t2p->pdf_majorversion&0xff,
  3869. 			  t2p->pdf_minorversion&0xff);

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

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

tools/tiff2pdf.c:3871:2: 
  3869. 			  t2p->pdf_minorversion&0xff);
  3870. 	check_snprintf_ret(t2p, buflen, buffer);
  3871. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen);
         ^
  3872. 	written += t2pWriteFile(output, (tdata_t)"\n%\342\343\317\323\n", 7);
  3873. 

tools/tiff2pdf.c:383:1: start of procedure t2pWriteFile()
    381. #endif /* OJPEG_SUPPORT */
    382. 
    383. static tmsize_t 
         ^
    384. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    385. {

tools/tiff2pdf.c:386:2: 
    384. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    385. {
    386. 	thandle_t client = TIFFClientdata(tif);
          ^
    387. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    388. 	if (proc)

libtiff/tif_open.c:552:1: start of procedure TIFFClientdata()
      550.  * Return open file's clientdata.
      551.  */
      552. thandle_t
           ^
      553. TIFFClientdata(TIFF* tif)
      554. {

libtiff/tif_open.c:555:2: 
      553. TIFFClientdata(TIFF* tif)
      554. {
      555. 	return (tif->tif_clientdata);
            ^
      556. }
      557. 

libtiff/tif_open.c:556:1: return from a call to TIFFClientdata
      554. {
      555. 	return (tif->tif_clientdata);
      556. }
           ^
      557. 
      558. /*

tools/tiff2pdf.c:387:2: 
    385. {
    386. 	thandle_t client = TIFFClientdata(tif);
    387. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    388. 	if (proc)
    389. 		return proc(client, data, size);

libtiff/tif_open.c:683:1: start of procedure TIFFGetWriteProc()
      681.  * Return pointer to file write method.
      682.  */
      683. TIFFReadWriteProc
           ^
      684. TIFFGetWriteProc(TIFF* tif)
      685. {

libtiff/tif_open.c:686:2: 
      684. TIFFGetWriteProc(TIFF* tif)
      685. {
      686. 	return (tif->tif_writeproc);
            ^
      687. }
      688. 

libtiff/tif_open.c:687:1: return from a call to TIFFGetWriteProc
      685. {
      686. 	return (tif->tif_writeproc);
      687. }
           ^
      688. 
      689. /*

tools/tiff2pdf.c:388:6: Taking false branch
    386. 	thandle_t client = TIFFClientdata(tif);
    387. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    388. 	if (proc)
              ^
    389. 		return proc(client, data, size);
    390. 	return -1;

tools/tiff2pdf.c:390:2: 
    388. 	if (proc)
    389. 		return proc(client, data, size);
    390. 	return -1;
          ^
    391. }
    392. 

tools/tiff2pdf.c:391:1: return from a call to t2pWriteFile
    389. 		return proc(client, data, size);
    390. 	return -1;
    391. }
         ^
    392. 
    393. static uint64

tools/tiff2pdf.c:3872:2: 
  3870. 	check_snprintf_ret(t2p, buflen, buffer);
  3871. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen);
  3872. 	written += t2pWriteFile(output, (tdata_t)"\n%\342\343\317\323\n", 7);
         ^
  3873. 
  3874. 	return(written);

tools/tiff2pdf.c:383:1: start of procedure t2pWriteFile()
    381. #endif /* OJPEG_SUPPORT */
    382. 
    383. static tmsize_t 
         ^
    384. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    385. {

tools/tiff2pdf.c:386:2: 
    384. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    385. {
    386. 	thandle_t client = TIFFClientdata(tif);
          ^
    387. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    388. 	if (proc)

libtiff/tif_open.c:552:1: start of procedure TIFFClientdata()
      550.  * Return open file's clientdata.
      551.  */
      552. thandle_t
           ^
      553. TIFFClientdata(TIFF* tif)
      554. {

libtiff/tif_open.c:555:2: 
      553. TIFFClientdata(TIFF* tif)
      554. {
      555. 	return (tif->tif_clientdata);
            ^
      556. }
      557. 

libtiff/tif_open.c:556:1: return from a call to TIFFClientdata
      554. {
      555. 	return (tif->tif_clientdata);
      556. }
           ^
      557. 
      558. /*

tools/tiff2pdf.c:387:2: 
    385. {
    386. 	thandle_t client = TIFFClientdata(tif);
    387. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    388. 	if (proc)
    389. 		return proc(client, data, size);

libtiff/tif_open.c:683:1: start of procedure TIFFGetWriteProc()
      681.  * Return pointer to file write method.
      682.  */
      683. TIFFReadWriteProc
           ^
      684. TIFFGetWriteProc(TIFF* tif)
      685. {

libtiff/tif_open.c:686:2: 
      684. TIFFGetWriteProc(TIFF* tif)
      685. {
      686. 	return (tif->tif_writeproc);
            ^
      687. }
      688. 

libtiff/tif_open.c:687:1: return from a call to TIFFGetWriteProc
      685. {
      686. 	return (tif->tif_writeproc);
      687. }
           ^
      688. 
      689. /*

tools/tiff2pdf.c:388:6: Taking false branch
    386. 	thandle_t client = TIFFClientdata(tif);
    387. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    388. 	if (proc)
              ^
    389. 		return proc(client, data, size);
    390. 	return -1;

tools/tiff2pdf.c:390:2: 
    388. 	if (proc)
    389. 		return proc(client, data, size);
    390. 	return -1;
          ^
    391. }
    392. 

tools/tiff2pdf.c:391:1: return from a call to t2pWriteFile
    389. 		return proc(client, data, size);
    390. 	return -1;
    391. }
         ^
    392. 
    393. static uint64

tools/tiff2pdf.c:3874:2: 
  3872. 	written += t2pWriteFile(output, (tdata_t)"\n%\342\343\317\323\n", 7);
  3873. 
  3874. 	return(written);
         ^
  3875. }
  3876. 

tools/tiff2pdf.c:3875:1: return from a call to t2p_write_pdf_header
  3873. 
  3874. 	return(written);
  3875. }
        ^
  3876. 
  3877. /*

tools/tiff2pdf.c:5521:2: 
5519. 	t2p->pdf_pages=3;
5520. 	written += t2p_write_pdf_header(t2p, output);
5521. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
       ^
5522. 	t2p->pdf_catalog=t2p->pdf_xrefcount;
5523. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);

tools/tiff2pdf.c:5522:2: 
5520. 	written += t2p_write_pdf_header(t2p, output);
5521. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5522. 	t2p->pdf_catalog=t2p->pdf_xrefcount;
       ^
5523. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5524. 	written += t2p_write_pdf_catalog(t2p, output);

tools/tiff2pdf.c:5523:2: 
5521. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5522. 	t2p->pdf_catalog=t2p->pdf_xrefcount;
5523. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
       ^
5524. 	written += t2p_write_pdf_catalog(t2p, output);
5525. 	written += t2p_write_pdf_obj_end(output);

tools/tiff2pdf.c:3881:1: start of procedure t2p_write_pdf_obj_start()
  3879. */
  3880. 
  3881. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
        ^
  3882. 
  3883. 	tsize_t written=0;

tools/tiff2pdf.c:3883:2: 
  3881. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
  3882. 
  3883. 	tsize_t written=0;
         ^
  3884. 	char buffer[32];
  3885. 	int buflen=0;

tools/tiff2pdf.c:3885:2: 
  3883. 	tsize_t written=0;
  3884. 	char buffer[32];
  3885. 	int buflen=0;
         ^
  3886. 
  3887. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);

tools/tiff2pdf.c:3887:2: 
  3885. 	int buflen=0;
  3886. 
  3887. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
         ^
  3888. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3889. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );

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

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

tools/tiff2pdf.c:3889:2: 
  3887. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
  3888. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3889. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
         ^
  3890. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
  3891. 

tools/tiff2pdf.c:383:1: start of procedure t2pWriteFile()
    381. #endif /* OJPEG_SUPPORT */
    382. 
    383. static tmsize_t 
         ^
    384. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    385. {

tools/tiff2pdf.c:386:2: 
    384. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    385. {
    386. 	thandle_t client = TIFFClientdata(tif);
          ^
    387. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    388. 	if (proc)

libtiff/tif_open.c:552:1: start of procedure TIFFClientdata()
      550.  * Return open file's clientdata.
      551.  */
      552. thandle_t
           ^
      553. TIFFClientdata(TIFF* tif)
      554. {

libtiff/tif_open.c:555:2: 
      553. TIFFClientdata(TIFF* tif)
      554. {
      555. 	return (tif->tif_clientdata);
            ^
      556. }
      557. 

libtiff/tif_open.c:556:1: return from a call to TIFFClientdata
      554. {
      555. 	return (tif->tif_clientdata);
      556. }
           ^
      557. 
      558. /*

tools/tiff2pdf.c:387:2: 
    385. {
    386. 	thandle_t client = TIFFClientdata(tif);
    387. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    388. 	if (proc)
    389. 		return proc(client, data, size);

libtiff/tif_open.c:683:1: start of procedure TIFFGetWriteProc()
      681.  * Return pointer to file write method.
      682.  */
      683. TIFFReadWriteProc
           ^
      684. TIFFGetWriteProc(TIFF* tif)
      685. {

libtiff/tif_open.c:686:2: 
      684. TIFFGetWriteProc(TIFF* tif)
      685. {
      686. 	return (tif->tif_writeproc);
            ^
      687. }
      688. 

libtiff/tif_open.c:687:1: return from a call to TIFFGetWriteProc
      685. {
      686. 	return (tif->tif_writeproc);
      687. }
           ^
      688. 
      689. /*

tools/tiff2pdf.c:388:6: Taking false branch
    386. 	thandle_t client = TIFFClientdata(tif);
    387. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    388. 	if (proc)
              ^
    389. 		return proc(client, data, size);
    390. 	return -1;

tools/tiff2pdf.c:390:2: 
    388. 	if (proc)
    389. 		return proc(client, data, size);
    390. 	return -1;
          ^
    391. }
    392. 

tools/tiff2pdf.c:391:1: return from a call to t2pWriteFile
    389. 		return proc(client, data, size);
    390. 	return -1;
    391. }
         ^
    392. 
    393. static uint64

tools/tiff2pdf.c:3890:2: 
  3888. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3889. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
  3890. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
         ^
  3891. 
  3892. 	return(written);

tools/tiff2pdf.c:383:1: start of procedure t2pWriteFile()
    381. #endif /* OJPEG_SUPPORT */
    382. 
    383. static tmsize_t 
         ^
    384. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    385. {

tools/tiff2pdf.c:386:2: 
    384. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    385. {
    386. 	thandle_t client = TIFFClientdata(tif);
          ^
    387. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    388. 	if (proc)

libtiff/tif_open.c:552:1: start of procedure TIFFClientdata()
      550.  * Return open file's clientdata.
      551.  */
      552. thandle_t
           ^
      553. TIFFClientdata(TIFF* tif)
      554. {

libtiff/tif_open.c:555:2: 
      553. TIFFClientdata(TIFF* tif)
      554. {
      555. 	return (tif->tif_clientdata);
            ^
      556. }
      557. 

libtiff/tif_open.c:556:1: return from a call to TIFFClientdata
      554. {
      555. 	return (tif->tif_clientdata);
      556. }
           ^
      557. 
      558. /*

tools/tiff2pdf.c:387:2: 
    385. {
    386. 	thandle_t client = TIFFClientdata(tif);
    387. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    388. 	if (proc)
    389. 		return proc(client, data, size);

libtiff/tif_open.c:683:1: start of procedure TIFFGetWriteProc()
      681.  * Return pointer to file write method.
      682.  */
      683. TIFFReadWriteProc
           ^
      684. TIFFGetWriteProc(TIFF* tif)
      685. {

libtiff/tif_open.c:686:2: 
      684. TIFFGetWriteProc(TIFF* tif)
      685. {
      686. 	return (tif->tif_writeproc);
            ^
      687. }
      688. 

libtiff/tif_open.c:687:1: return from a call to TIFFGetWriteProc
      685. {
      686. 	return (tif->tif_writeproc);
      687. }
           ^
      688. 
      689. /*

tools/tiff2pdf.c:388:6: Taking false branch
    386. 	thandle_t client = TIFFClientdata(tif);
    387. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    388. 	if (proc)
              ^
    389. 		return proc(client, data, size);
    390. 	return -1;

tools/tiff2pdf.c:390:2: 
    388. 	if (proc)
    389. 		return proc(client, data, size);
    390. 	return -1;
          ^
    391. }
    392. 

tools/tiff2pdf.c:391:1: return from a call to t2pWriteFile
    389. 		return proc(client, data, size);
    390. 	return -1;
    391. }
         ^
    392. 
    393. static uint64

tools/tiff2pdf.c:3892:2: 
  3890. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
  3891. 
  3892. 	return(written);
         ^
  3893. }
  3894. 

tools/tiff2pdf.c:3893:1: return from a call to t2p_write_pdf_obj_start
  3891. 
  3892. 	return(written);
  3893. }
        ^
  3894. 
  3895. /*

tools/tiff2pdf.c:5524:2: 
5522. 	t2p->pdf_catalog=t2p->pdf_xrefcount;
5523. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5524. 	written += t2p_write_pdf_catalog(t2p, output);
       ^
5525. 	written += t2p_write_pdf_obj_end(output);
5526. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;

tools/tiff2pdf.c:4170:1: start of procedure t2p_write_pdf_catalog()
  4168.  */
  4169. 
  4170. tsize_t t2p_write_pdf_catalog(T2P* t2p, TIFF* output)
        ^
  4171. {
  4172. 	tsize_t written = 0;

tools/tiff2pdf.c:4172:2: 
  4170. tsize_t t2p_write_pdf_catalog(T2P* t2p, TIFF* output)
  4171. {
  4172. 	tsize_t written = 0;
         ^
  4173. 	char buffer[32];
  4174. 	int buflen = 0;

tools/tiff2pdf.c:4174:2: 
  4172. 	tsize_t written = 0;
  4173. 	char buffer[32];
  4174. 	int buflen = 0;
         ^
  4175. 
  4176. 	written += t2pWriteFile(output, 

tools/tiff2pdf.c:4176:2: 
  4174. 	int buflen = 0;
  4175. 
  4176. 	written += t2pWriteFile(output, 
         ^
  4177. 		(tdata_t)"<< \n/Type /Catalog \n/Pages ", 
  4178. 		27);

tools/tiff2pdf.c:383:1: start of procedure t2pWriteFile()
    381. #endif /* OJPEG_SUPPORT */
    382. 
    383. static tmsize_t 
         ^
    384. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    385. {

tools/tiff2pdf.c:386:2: 
    384. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    385. {
    386. 	thandle_t client = TIFFClientdata(tif);
          ^
    387. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    388. 	if (proc)

libtiff/tif_open.c:552:1: start of procedure TIFFClientdata()
      550.  * Return open file's clientdata.
      551.  */
      552. thandle_t
           ^
      553. TIFFClientdata(TIFF* tif)
      554. {

libtiff/tif_open.c:555:2: 
      553. TIFFClientdata(TIFF* tif)
      554. {
      555. 	return (tif->tif_clientdata);
            ^
      556. }
      557. 

libtiff/tif_open.c:556:1: return from a call to TIFFClientdata
      554. {
      555. 	return (tif->tif_clientdata);
      556. }
           ^
      557. 
      558. /*

tools/tiff2pdf.c:387:2: 
    385. {
    386. 	thandle_t client = TIFFClientdata(tif);
    387. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    388. 	if (proc)
    389. 		return proc(client, data, size);

libtiff/tif_open.c:683:1: start of procedure TIFFGetWriteProc()
      681.  * Return pointer to file write method.
      682.  */
      683. TIFFReadWriteProc
           ^
      684. TIFFGetWriteProc(TIFF* tif)
      685. {

libtiff/tif_open.c:686:2: 
      684. TIFFGetWriteProc(TIFF* tif)
      685. {
      686. 	return (tif->tif_writeproc);
            ^
      687. }
      688. 

libtiff/tif_open.c:687:1: return from a call to TIFFGetWriteProc
      685. {
      686. 	return (tif->tif_writeproc);
      687. }
           ^
      688. 
      689. /*

tools/tiff2pdf.c:388:6: Taking false branch
    386. 	thandle_t client = TIFFClientdata(tif);
    387. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    388. 	if (proc)
              ^
    389. 		return proc(client, data, size);
    390. 	return -1;

tools/tiff2pdf.c:390:2: 
    388. 	if (proc)
    389. 		return proc(client, data, size);
    390. 	return -1;
          ^
    391. }
    392. 

tools/tiff2pdf.c:391:1: return from a call to t2pWriteFile
    389. 		return proc(client, data, size);
    390. 	return -1;
    391. }
         ^
    392. 
    393. static uint64

tools/tiff2pdf.c:4179:2: 
  4177. 		(tdata_t)"<< \n/Type /Catalog \n/Pages ", 
  4178. 		27);
  4179. 	buflen = snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)t2p->pdf_pages);
         ^
  4180. 	check_snprintf_ret(t2p, buflen, buffer);
  4181. 	written += t2pWriteFile(output, (tdata_t) buffer,

tools/tiff2pdf.c:4180:2: Taking false branch
  4178. 		27);
  4179. 	buflen = snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)t2p->pdf_pages);
  4180. 	check_snprintf_ret(t2p, buflen, buffer);
         ^
  4181. 	written += t2pWriteFile(output, (tdata_t) buffer,
  4182. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));

tools/tiff2pdf.c:4180:2: Taking false branch
  4178. 		27);
  4179. 	buflen = snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)t2p->pdf_pages);
  4180. 	check_snprintf_ret(t2p, buflen, buffer);
         ^
  4181. 	written += t2pWriteFile(output, (tdata_t) buffer,
  4182. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));

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

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

tools/tiff2pdf.c:383:1: start of procedure t2pWriteFile()
    381. #endif /* OJPEG_SUPPORT */
    382. 
    383. static tmsize_t 
         ^
    384. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    385. {

tools/tiff2pdf.c:386:2: 
    384. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    385. {
    386. 	thandle_t client = TIFFClientdata(tif);
          ^
    387. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    388. 	if (proc)

libtiff/tif_open.c:552:1: start of procedure TIFFClientdata()
      550.  * Return open file's clientdata.
      551.  */
      552. thandle_t
           ^
      553. TIFFClientdata(TIFF* tif)
      554. {

libtiff/tif_open.c:555:2: 
      553. TIFFClientdata(TIFF* tif)
      554. {
      555. 	return (tif->tif_clientdata);
            ^
      556. }
      557. 

libtiff/tif_open.c:556:1: return from a call to TIFFClientdata
      554. {
      555. 	return (tif->tif_clientdata);
      556. }
           ^
      557. 
      558. /*

tools/tiff2pdf.c:387:2: 
    385. {
    386. 	thandle_t client = TIFFClientdata(tif);
    387. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    388. 	if (proc)
    389. 		return proc(client, data, size);

libtiff/tif_open.c:683:1: start of procedure TIFFGetWriteProc()
      681.  * Return pointer to file write method.
      682.  */
      683. TIFFReadWriteProc
           ^
      684. TIFFGetWriteProc(TIFF* tif)
      685. {

libtiff/tif_open.c:686:2: 
      684. TIFFGetWriteProc(TIFF* tif)
      685. {
      686. 	return (tif->tif_writeproc);
            ^
      687. }
      688. 

libtiff/tif_open.c:687:1: return from a call to TIFFGetWriteProc
      685. {
      686. 	return (tif->tif_writeproc);
      687. }
           ^
      688. 
      689. /*

tools/tiff2pdf.c:388:6: Taking false branch
    386. 	thandle_t client = TIFFClientdata(tif);
    387. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    388. 	if (proc)
              ^
    389. 		return proc(client, data, size);
    390. 	return -1;

tools/tiff2pdf.c:390:2: 
    388. 	if (proc)
    389. 		return proc(client, data, size);
    390. 	return -1;
          ^
    391. }
    392. 

tools/tiff2pdf.c:391:1: return from a call to t2pWriteFile
    389. 		return proc(client, data, size);
    390. 	return -1;
    391. }
         ^
    392. 
    393. static uint64

tools/tiff2pdf.c:4183:2: 
  4181. 	written += t2pWriteFile(output, (tdata_t) buffer,
  4182. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));
  4183. 	written += t2pWriteFile(output, (tdata_t) " 0 R \n", 6);
         ^
  4184. 	if(t2p->pdf_fitwindow){
  4185. 		written += t2pWriteFile(output, 

tools/tiff2pdf.c:383:1: start of procedure t2pWriteFile()
    381. #endif /* OJPEG_SUPPORT */
    382. 
    383. static tmsize_t 
         ^
    384. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    385. {

tools/tiff2pdf.c:386:2: 
    384. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    385. {
    386. 	thandle_t client = TIFFClientdata(tif);
          ^
    387. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    388. 	if (proc)

libtiff/tif_open.c:552:1: start of procedure TIFFClientdata()
      550.  * Return open file's clientdata.
      551.  */
      552. thandle_t
           ^
      553. TIFFClientdata(TIFF* tif)
      554. {

libtiff/tif_open.c:555:2: 
      553. TIFFClientdata(TIFF* tif)
      554. {
      555. 	return (tif->tif_clientdata);
            ^
      556. }
      557. 

libtiff/tif_open.c:556:1: return from a call to TIFFClientdata
      554. {
      555. 	return (tif->tif_clientdata);
      556. }
           ^
      557. 
      558. /*

tools/tiff2pdf.c:387:2: 
    385. {
    386. 	thandle_t client = TIFFClientdata(tif);
    387. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    388. 	if (proc)
    389. 		return proc(client, data, size);

libtiff/tif_open.c:683:1: start of procedure TIFFGetWriteProc()
      681.  * Return pointer to file write method.
      682.  */
      683. TIFFReadWriteProc
           ^
      684. TIFFGetWriteProc(TIFF* tif)
      685. {

libtiff/tif_open.c:686:2: 
      684. TIFFGetWriteProc(TIFF* tif)
      685. {
      686. 	return (tif->tif_writeproc);
            ^
      687. }
      688. 

libtiff/tif_open.c:687:1: return from a call to TIFFGetWriteProc
      685. {
      686. 	return (tif->tif_writeproc);
      687. }
           ^
      688. 
      689. /*

tools/tiff2pdf.c:388:6: Taking false branch
    386. 	thandle_t client = TIFFClientdata(tif);
    387. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    388. 	if (proc)
              ^
    389. 		return proc(client, data, size);
    390. 	return -1;

tools/tiff2pdf.c:390:2: 
    388. 	if (proc)
    389. 		return proc(client, data, size);
    390. 	return -1;
          ^
    391. }
    392. 

tools/tiff2pdf.c:391:1: return from a call to t2pWriteFile
    389. 		return proc(client, data, size);
    390. 	return -1;
    391. }
         ^
    392. 
    393. static uint64

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

tools/tiff2pdf.c:4185:3: 
  4183. 	written += t2pWriteFile(output, (tdata_t) " 0 R \n", 6);
  4184. 	if(t2p->pdf_fitwindow){
  4185. 		written += t2pWriteFile(output, 
          ^
  4186. 			(tdata_t) "/ViewerPreferences <</FitWindow true>>\n", 
  4187. 			39);

tools/tiff2pdf.c:383:1: start of procedure t2pWriteFile()
    381. #endif /* OJPEG_SUPPORT */
    382. 
    383. static tmsize_t 
         ^
    384. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    385. {

tools/tiff2pdf.c:386:2: 
    384. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    385. {
    386. 	thandle_t client = TIFFClientdata(tif);
          ^
    387. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    388. 	if (proc)

libtiff/tif_open.c:552:1: start of procedure TIFFClientdata()
      550.  * Return open file's clientdata.
      551.  */
      552. thandle_t
           ^
      553. TIFFClientdata(TIFF* tif)
      554. {

libtiff/tif_open.c:555:2: 
      553. TIFFClientdata(TIFF* tif)
      554. {
      555. 	return (tif->tif_clientdata);
            ^
      556. }
      557. 

libtiff/tif_open.c:556:1: return from a call to TIFFClientdata
      554. {
      555. 	return (tif->tif_clientdata);
      556. }
           ^
      557. 
      558. /*

tools/tiff2pdf.c:387:2: 
    385. {
    386. 	thandle_t client = TIFFClientdata(tif);
    387. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    388. 	if (proc)
    389. 		return proc(client, data, size);

libtiff/tif_open.c:683:1: start of procedure TIFFGetWriteProc()
      681.  * Return pointer to file write method.
      682.  */
      683. TIFFReadWriteProc
           ^
      684. TIFFGetWriteProc(TIFF* tif)
      685. {

libtiff/tif_open.c:686:2: 
      684. TIFFGetWriteProc(TIFF* tif)
      685. {
      686. 	return (tif->tif_writeproc);
            ^
      687. }
      688. 

libtiff/tif_open.c:687:1: return from a call to TIFFGetWriteProc
      685. {
      686. 	return (tif->tif_writeproc);
      687. }
           ^
      688. 
      689. /*

tools/tiff2pdf.c:388:6: Taking false branch
    386. 	thandle_t client = TIFFClientdata(tif);
    387. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    388. 	if (proc)
              ^
    389. 		return proc(client, data, size);
    390. 	return -1;

tools/tiff2pdf.c:390:2: 
    388. 	if (proc)
    389. 		return proc(client, data, size);
    390. 	return -1;
          ^
    391. }
    392. 

tools/tiff2pdf.c:391:1: return from a call to t2pWriteFile
    389. 		return proc(client, data, size);
    390. 	return -1;
    391. }
         ^
    392. 
    393. static uint64

tools/tiff2pdf.c:4189:2: 
  4187. 			39);
  4188. 	}
  4189. 	written += t2pWriteFile(output, (tdata_t)">>\n", 3);
         ^
  4190. 
  4191. 	return(written);

tools/tiff2pdf.c:383:1: start of procedure t2pWriteFile()
    381. #endif /* OJPEG_SUPPORT */
    382. 
    383. static tmsize_t 
         ^
    384. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    385. {

tools/tiff2pdf.c:386:2: 
    384. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    385. {
    386. 	thandle_t client = TIFFClientdata(tif);
          ^
    387. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    388. 	if (proc)

libtiff/tif_open.c:552:1: start of procedure TIFFClientdata()
      550.  * Return open file's clientdata.
      551.  */
      552. thandle_t
           ^
      553. TIFFClientdata(TIFF* tif)
      554. {

libtiff/tif_open.c:555:2: 
      553. TIFFClientdata(TIFF* tif)
      554. {
      555. 	return (tif->tif_clientdata);
            ^
      556. }
      557. 

libtiff/tif_open.c:556:1: return from a call to TIFFClientdata
      554. {
      555. 	return (tif->tif_clientdata);
      556. }
           ^
      557. 
      558. /*

tools/tiff2pdf.c:387:2: 
    385. {
    386. 	thandle_t client = TIFFClientdata(tif);
    387. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    388. 	if (proc)
    389. 		return proc(client, data, size);

libtiff/tif_open.c:683:1: start of procedure TIFFGetWriteProc()
      681.  * Return pointer to file write method.
      682.  */
      683. TIFFReadWriteProc
           ^
      684. TIFFGetWriteProc(TIFF* tif)
      685. {

libtiff/tif_open.c:686:2: 
      684. TIFFGetWriteProc(TIFF* tif)
      685. {
      686. 	return (tif->tif_writeproc);
            ^
      687. }
      688. 

libtiff/tif_open.c:687:1: return from a call to TIFFGetWriteProc
      685. {
      686. 	return (tif->tif_writeproc);
      687. }
           ^
      688. 
      689. /*

tools/tiff2pdf.c:388:6: Taking false branch
    386. 	thandle_t client = TIFFClientdata(tif);
    387. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    388. 	if (proc)
              ^
    389. 		return proc(client, data, size);
    390. 	return -1;

tools/tiff2pdf.c:390:2: 
    388. 	if (proc)
    389. 		return proc(client, data, size);
    390. 	return -1;
          ^
    391. }
    392. 

tools/tiff2pdf.c:391:1: return from a call to t2pWriteFile
    389. 		return proc(client, data, size);
    390. 	return -1;
    391. }
         ^
    392. 
    393. static uint64

tools/tiff2pdf.c:4191:2: 
  4189. 	written += t2pWriteFile(output, (tdata_t)">>\n", 3);
  4190. 
  4191. 	return(written);
         ^
  4192. }
  4193. 

tools/tiff2pdf.c:4192:1: return from a call to t2p_write_pdf_catalog
  4190. 
  4191. 	return(written);
  4192. }
        ^
  4193. 
  4194. /*

tools/tiff2pdf.c:5525:2: 
5523. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5524. 	written += t2p_write_pdf_catalog(t2p, output);
5525. 	written += t2p_write_pdf_obj_end(output);
       ^
5526. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5527. 	t2p->pdf_info=t2p->pdf_xrefcount;

tools/tiff2pdf.c:3899:1: start of procedure t2p_write_pdf_obj_end()
  3897. */
  3898. 
  3899. tsize_t t2p_write_pdf_obj_end(TIFF* output){
        ^
  3900. 
  3901. 	tsize_t written=0;

tools/tiff2pdf.c:3901:2: 
  3899. tsize_t t2p_write_pdf_obj_end(TIFF* output){
  3900. 
  3901. 	tsize_t written=0;
         ^
  3902. 
  3903. 	written += t2pWriteFile(output, (tdata_t) "endobj\n", 7);

tools/tiff2pdf.c:3903:2: 
  3901. 	tsize_t written=0;
  3902. 
  3903. 	written += t2pWriteFile(output, (tdata_t) "endobj\n", 7);
         ^
  3904. 
  3905. 	return(written);

tools/tiff2pdf.c:383:1: start of procedure t2pWriteFile()
    381. #endif /* OJPEG_SUPPORT */
    382. 
    383. static tmsize_t 
         ^
    384. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    385. {

tools/tiff2pdf.c:386:2: 
    384. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    385. {
    386. 	thandle_t client = TIFFClientdata(tif);
          ^
    387. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    388. 	if (proc)

libtiff/tif_open.c:552:1: start of procedure TIFFClientdata()
      550.  * Return open file's clientdata.
      551.  */
      552. thandle_t
           ^
      553. TIFFClientdata(TIFF* tif)
      554. {

libtiff/tif_open.c:555:2: 
      553. TIFFClientdata(TIFF* tif)
      554. {
      555. 	return (tif->tif_clientdata);
            ^
      556. }
      557. 

libtiff/tif_open.c:556:1: return from a call to TIFFClientdata
      554. {
      555. 	return (tif->tif_clientdata);
      556. }
           ^
      557. 
      558. /*

tools/tiff2pdf.c:387:2: 
    385. {
    386. 	thandle_t client = TIFFClientdata(tif);
    387. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    388. 	if (proc)
    389. 		return proc(client, data, size);

libtiff/tif_open.c:683:1: start of procedure TIFFGetWriteProc()
      681.  * Return pointer to file write method.
      682.  */
      683. TIFFReadWriteProc
           ^
      684. TIFFGetWriteProc(TIFF* tif)
      685. {

libtiff/tif_open.c:686:2: 
      684. TIFFGetWriteProc(TIFF* tif)
      685. {
      686. 	return (tif->tif_writeproc);
            ^
      687. }
      688. 

libtiff/tif_open.c:687:1: return from a call to TIFFGetWriteProc
      685. {
      686. 	return (tif->tif_writeproc);
      687. }
           ^
      688. 
      689. /*

tools/tiff2pdf.c:388:6: Taking false branch
    386. 	thandle_t client = TIFFClientdata(tif);
    387. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    388. 	if (proc)
              ^
    389. 		return proc(client, data, size);
    390. 	return -1;

tools/tiff2pdf.c:390:2: 
    388. 	if (proc)
    389. 		return proc(client, data, size);
    390. 	return -1;
          ^
    391. }
    392. 

tools/tiff2pdf.c:391:1: return from a call to t2pWriteFile
    389. 		return proc(client, data, size);
    390. 	return -1;
    391. }
         ^
    392. 
    393. static uint64

tools/tiff2pdf.c:3905:2: 
  3903. 	written += t2pWriteFile(output, (tdata_t) "endobj\n", 7);
  3904. 
  3905. 	return(written);
         ^
  3906. }
  3907. 

tools/tiff2pdf.c:3906:1: return from a call to t2p_write_pdf_obj_end
  3904. 
  3905. 	return(written);
  3906. }
        ^
  3907. 
  3908. /*

tools/tiff2pdf.c:5526:2: 
5524. 	written += t2p_write_pdf_catalog(t2p, output);
5525. 	written += t2p_write_pdf_obj_end(output);
5526. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
       ^
5527. 	t2p->pdf_info=t2p->pdf_xrefcount;
5528. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);

tools/tiff2pdf.c:5527:2: 
5525. 	written += t2p_write_pdf_obj_end(output);
5526. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5527. 	t2p->pdf_info=t2p->pdf_xrefcount;
       ^
5528. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5529. 	written += t2p_write_pdf_info(t2p, input, output);

tools/tiff2pdf.c:5528:2: 
5526. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5527. 	t2p->pdf_info=t2p->pdf_xrefcount;
5528. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
       ^
5529. 	written += t2p_write_pdf_info(t2p, input, output);
5530. 	written += t2p_write_pdf_obj_end(output);

tools/tiff2pdf.c:3881:1: start of procedure t2p_write_pdf_obj_start()
  3879. */
  3880. 
  3881. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
        ^
  3882. 
  3883. 	tsize_t written=0;

tools/tiff2pdf.c:3883:2: 
  3881. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
  3882. 
  3883. 	tsize_t written=0;
         ^
  3884. 	char buffer[32];
  3885. 	int buflen=0;

tools/tiff2pdf.c:3885:2: 
  3883. 	tsize_t written=0;
  3884. 	char buffer[32];
  3885. 	int buflen=0;
         ^
  3886. 
  3887. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);

tools/tiff2pdf.c:3887:2: 
  3885. 	int buflen=0;
  3886. 
  3887. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
         ^
  3888. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3889. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );

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

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

tools/tiff2pdf.c:3889:2: 
  3887. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
  3888. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3889. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
         ^
  3890. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
  3891. 

tools/tiff2pdf.c:383:1: start of procedure t2pWriteFile()
    381. #endif /* OJPEG_SUPPORT */
    382. 
    383. static tmsize_t 
         ^
    384. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    385. {

tools/tiff2pdf.c:386:2: 
    384. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    385. {
    386. 	thandle_t client = TIFFClientdata(tif);
          ^
    387. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    388. 	if (proc)

libtiff/tif_open.c:552:1: start of procedure TIFFClientdata()
      550.  * Return open file's clientdata.
      551.  */
      552. thandle_t
           ^
      553. TIFFClientdata(TIFF* tif)
      554. {

libtiff/tif_open.c:555:2: 
      553. TIFFClientdata(TIFF* tif)
      554. {
      555. 	return (tif->tif_clientdata);
            ^
      556. }
      557. 

libtiff/tif_open.c:556:1: return from a call to TIFFClientdata
      554. {
      555. 	return (tif->tif_clientdata);
      556. }
           ^
      557. 
      558. /*

tools/tiff2pdf.c:387:2: 
    385. {
    386. 	thandle_t client = TIFFClientdata(tif);
    387. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    388. 	if (proc)
    389. 		return proc(client, data, size);

libtiff/tif_open.c:683:1: start of procedure TIFFGetWriteProc()
      681.  * Return pointer to file write method.
      682.  */
      683. TIFFReadWriteProc
           ^
      684. TIFFGetWriteProc(TIFF* tif)
      685. {

libtiff/tif_open.c:686:2: 
      684. TIFFGetWriteProc(TIFF* tif)
      685. {
      686. 	return (tif->tif_writeproc);
            ^
      687. }
      688. 

libtiff/tif_open.c:687:1: return from a call to TIFFGetWriteProc
      685. {
      686. 	return (tif->tif_writeproc);
      687. }
           ^
      688. 
      689. /*

tools/tiff2pdf.c:388:6: Taking false branch
    386. 	thandle_t client = TIFFClientdata(tif);
    387. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    388. 	if (proc)
              ^
    389. 		return proc(client, data, size);
    390. 	return -1;

tools/tiff2pdf.c:390:2: 
    388. 	if (proc)
    389. 		return proc(client, data, size);
    390. 	return -1;
          ^
    391. }
    392. 

tools/tiff2pdf.c:391:1: return from a call to t2pWriteFile
    389. 		return proc(client, data, size);
    390. 	return -1;
    391. }
         ^
    392. 
    393. static uint64

tools/tiff2pdf.c:3890:2: 
  3888. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3889. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
  3890. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
         ^
  3891. 
  3892. 	return(written);

tools/tiff2pdf.c:383:1: start of procedure t2pWriteFile()
    381. #endif /* OJPEG_SUPPORT */
    382. 
    383. static tmsize_t 
         ^
    384. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    385. {

tools/tiff2pdf.c:386:2: 
    384. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    385. {
    386. 	thandle_t client = TIFFClientdata(tif);
          ^
    387. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    388. 	if (proc)

libtiff/tif_open.c:552:1: start of procedure TIFFClientdata()
      550.  * Return open file's clientdata.
      551.  */
      552. thandle_t
           ^
      553. TIFFClientdata(TIFF* tif)
      554. {

libtiff/tif_open.c:555:2: 
      553. TIFFClientdata(TIFF* tif)
      554. {
      555. 	return (tif->tif_clientdata);
            ^
      556. }
      557. 

libtiff/tif_open.c:556:1: return from a call to TIFFClientdata
      554. {
      555. 	return (tif->tif_clientdata);
      556. }
           ^
      557. 
      558. /*

tools/tiff2pdf.c:387:2: 
    385. {
    386. 	thandle_t client = TIFFClientdata(tif);
    387. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    388. 	if (proc)
    389. 		return proc(client, data, size);

libtiff/tif_open.c:683:1: start of procedure TIFFGetWriteProc()
      681.  * Return pointer to file write method.
      682.  */
      683. TIFFReadWriteProc
           ^
      684. TIFFGetWriteProc(TIFF* tif)
      685. {

libtiff/tif_open.c:686:2: 
      684. TIFFGetWriteProc(TIFF* tif)
      685. {
      686. 	return (tif->tif_writeproc);
            ^
      687. }
      688. 

libtiff/tif_open.c:687:1: return from a call to TIFFGetWriteProc
      685. {
      686. 	return (tif->tif_writeproc);
      687. }
           ^
      688. 
      689. /*

tools/tiff2pdf.c:388:6: Taking false branch
    386. 	thandle_t client = TIFFClientdata(tif);
    387. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    388. 	if (proc)
              ^
    389. 		return proc(client, data, size);
    390. 	return -1;

tools/tiff2pdf.c:390:2: 
    388. 	if (proc)
    389. 		return proc(client, data, size);
    390. 	return -1;
          ^
    391. }
    392. 

tools/tiff2pdf.c:391:1: return from a call to t2pWriteFile
    389. 		return proc(client, data, size);
    390. 	return -1;
    391. }
         ^
    392. 
    393. static uint64

tools/tiff2pdf.c:3892:2: 
  3890. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
  3891. 
  3892. 	return(written);
         ^
  3893. }
  3894. 

tools/tiff2pdf.c:3893:1: return from a call to t2p_write_pdf_obj_start
  3891. 
  3892. 	return(written);
  3893. }
        ^
  3894. 
  3895. /*

tools/tiff2pdf.c:5529:2: Skipping t2p_write_pdf_info(): empty list of specs
5527. 	t2p->pdf_info=t2p->pdf_xrefcount;
5528. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5529. 	written += t2p_write_pdf_info(t2p, input, output);
       ^
5530. 	written += t2p_write_pdf_obj_end(output);
5531. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
