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

tools/tiff2pdf.c:5486:1: start of procedure t2p_write_pdf()
5484. */
5485. 
5486. tsize_t t2p_write_pdf(T2P* t2p, TIFF* input, TIFF* output){
      ^
5487. 
5488. 	tsize_t written=0;

tools/tiff2pdf.c:5488:2: 
5486. tsize_t t2p_write_pdf(T2P* t2p, TIFF* input, TIFF* output){
5487. 
5488. 	tsize_t written=0;
       ^
5489. 	ttile_t i2=0;
5490. 	tsize_t streamlen=0;

tools/tiff2pdf.c:5489:2: 
5487. 
5488. 	tsize_t written=0;
5489. 	ttile_t i2=0;
       ^
5490. 	tsize_t streamlen=0;
5491. 	uint16 i=0;

tools/tiff2pdf.c:5490:2: 
5488. 	tsize_t written=0;
5489. 	ttile_t i2=0;
5490. 	tsize_t streamlen=0;
       ^
5491. 	uint16 i=0;
5492. 

tools/tiff2pdf.c:5491:2: 
5489. 	ttile_t i2=0;
5490. 	tsize_t streamlen=0;
5491. 	uint16 i=0;
       ^
5492. 
5493. 	t2p_read_tiff_init(t2p, input);

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

tools/tiff2pdf.c:5494:5: Taking false branch
5492. 
5493. 	t2p_read_tiff_init(t2p, input);
5494. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
          ^
5495. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
5496. 	if(t2p->pdf_xrefoffsets==NULL){

tools/tiff2pdf.c:5495:46: Condition is true
5493. 	t2p_read_tiff_init(t2p, input);
5494. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5495. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
                                                   ^
5496. 	if(t2p->pdf_xrefoffsets==NULL){
5497. 		TIFFError(

tools/tiff2pdf.c:5495:46: Condition is true
5493. 	t2p_read_tiff_init(t2p, input);
5494. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5495. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
                                                   ^
5496. 	if(t2p->pdf_xrefoffsets==NULL){
5497. 		TIFFError(

tools/tiff2pdf.c:5495:2: 
5493. 	t2p_read_tiff_init(t2p, input);
5494. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5495. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
       ^
5496. 	if(t2p->pdf_xrefoffsets==NULL){
5497. 		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:5496:5: Taking false branch
5494. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5495. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
5496. 	if(t2p->pdf_xrefoffsets==NULL){
          ^
5497. 		TIFFError(
5498. 			TIFF2PDF_MODULE, 

tools/tiff2pdf.c:5504:2: 
5502. 		return(written);
5503. 	}
5504. 	t2p->pdf_xrefcount=0;
       ^
5505. 	t2p->pdf_catalog=1;
5506. 	t2p->pdf_info=2;

tools/tiff2pdf.c:5505:2: 
5503. 	}
5504. 	t2p->pdf_xrefcount=0;
5505. 	t2p->pdf_catalog=1;
       ^
5506. 	t2p->pdf_info=2;
5507. 	t2p->pdf_pages=3;

tools/tiff2pdf.c:5506:2: 
5504. 	t2p->pdf_xrefcount=0;
5505. 	t2p->pdf_catalog=1;
5506. 	t2p->pdf_info=2;
       ^
5507. 	t2p->pdf_pages=3;
5508. 	written += t2p_write_pdf_header(t2p, output);

tools/tiff2pdf.c:5507:2: 
5505. 	t2p->pdf_catalog=1;
5506. 	t2p->pdf_info=2;
5507. 	t2p->pdf_pages=3;
       ^
5508. 	written += t2p_write_pdf_header(t2p, output);
5509. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;

tools/tiff2pdf.c:5508:2: 
5506. 	t2p->pdf_info=2;
5507. 	t2p->pdf_pages=3;
5508. 	written += t2p_write_pdf_header(t2p, output);
       ^
5509. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5510. 	t2p->pdf_catalog=t2p->pdf_xrefcount;

tools/tiff2pdf.c:3853:1: start of procedure t2p_write_pdf_header()
  3851. */
  3852. 
  3853. tsize_t t2p_write_pdf_header(T2P* t2p, TIFF* output){
        ^
  3854. 
  3855. 	tsize_t written=0;

tools/tiff2pdf.c:3855:2: 
  3853. tsize_t t2p_write_pdf_header(T2P* t2p, TIFF* output){
  3854. 
  3855. 	tsize_t written=0;
         ^
  3856. 	char buffer[16];
  3857. 	int buflen=0;

tools/tiff2pdf.c:3857:2: 
  3855. 	tsize_t written=0;
  3856. 	char buffer[16];
  3857. 	int buflen=0;
         ^
  3858. 	
  3859. 	buflen = snprintf(buffer, sizeof(buffer), "%%PDF-%u.%u ",

tools/tiff2pdf.c:3859:2: 
  3857. 	int buflen=0;
  3858. 	
  3859. 	buflen = snprintf(buffer, sizeof(buffer), "%%PDF-%u.%u ",
         ^
  3860. 			  t2p->pdf_majorversion&0xff,
  3861. 			  t2p->pdf_minorversion&0xff);

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

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

tools/tiff2pdf.c:3863:2: 
  3861. 			  t2p->pdf_minorversion&0xff);
  3862. 	check_snprintf_ret(t2p, buflen, buffer);
  3863. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen);
         ^
  3864. 	written += t2pWriteFile(output, (tdata_t)"\n%\342\343\317\323\n", 7);
  3865. 

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

tools/tiff2pdf.c:383:2: 
    381. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    382. {
    383. 	thandle_t client = TIFFClientdata(tif);
          ^
    384. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    385. 	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:384:2: 
    382. {
    383. 	thandle_t client = TIFFClientdata(tif);
    384. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    385. 	if (proc)
    386. 		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:385:6: Taking false branch
    383. 	thandle_t client = TIFFClientdata(tif);
    384. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    385. 	if (proc)
              ^
    386. 		return proc(client, data, size);
    387. 	return -1;

tools/tiff2pdf.c:387:2: 
    385. 	if (proc)
    386. 		return proc(client, data, size);
    387. 	return -1;
          ^
    388. }
    389. 

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

tools/tiff2pdf.c:3864:2: 
  3862. 	check_snprintf_ret(t2p, buflen, buffer);
  3863. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen);
  3864. 	written += t2pWriteFile(output, (tdata_t)"\n%\342\343\317\323\n", 7);
         ^
  3865. 
  3866. 	return(written);

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

tools/tiff2pdf.c:383:2: 
    381. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    382. {
    383. 	thandle_t client = TIFFClientdata(tif);
          ^
    384. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    385. 	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:384:2: 
    382. {
    383. 	thandle_t client = TIFFClientdata(tif);
    384. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    385. 	if (proc)
    386. 		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:385:6: Taking false branch
    383. 	thandle_t client = TIFFClientdata(tif);
    384. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    385. 	if (proc)
              ^
    386. 		return proc(client, data, size);
    387. 	return -1;

tools/tiff2pdf.c:387:2: 
    385. 	if (proc)
    386. 		return proc(client, data, size);
    387. 	return -1;
          ^
    388. }
    389. 

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

tools/tiff2pdf.c:3866:2: 
  3864. 	written += t2pWriteFile(output, (tdata_t)"\n%\342\343\317\323\n", 7);
  3865. 
  3866. 	return(written);
         ^
  3867. }
  3868. 

tools/tiff2pdf.c:3867:1: return from a call to t2p_write_pdf_header
  3865. 
  3866. 	return(written);
  3867. }
        ^
  3868. 
  3869. /*

tools/tiff2pdf.c:5509:2: 
5507. 	t2p->pdf_pages=3;
5508. 	written += t2p_write_pdf_header(t2p, output);
5509. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
       ^
5510. 	t2p->pdf_catalog=t2p->pdf_xrefcount;
5511. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);

tools/tiff2pdf.c:5510:2: 
5508. 	written += t2p_write_pdf_header(t2p, output);
5509. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5510. 	t2p->pdf_catalog=t2p->pdf_xrefcount;
       ^
5511. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5512. 	written += t2p_write_pdf_catalog(t2p, output);

tools/tiff2pdf.c:5511:2: 
5509. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5510. 	t2p->pdf_catalog=t2p->pdf_xrefcount;
5511. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
       ^
5512. 	written += t2p_write_pdf_catalog(t2p, output);
5513. 	written += t2p_write_pdf_obj_end(output);

tools/tiff2pdf.c:3873:1: start of procedure t2p_write_pdf_obj_start()
  3871. */
  3872. 
  3873. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
        ^
  3874. 
  3875. 	tsize_t written=0;

tools/tiff2pdf.c:3875:2: 
  3873. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
  3874. 
  3875. 	tsize_t written=0;
         ^
  3876. 	char buffer[32];
  3877. 	int buflen=0;

tools/tiff2pdf.c:3877:2: 
  3875. 	tsize_t written=0;
  3876. 	char buffer[32];
  3877. 	int buflen=0;
         ^
  3878. 
  3879. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);

tools/tiff2pdf.c:3879:2: 
  3877. 	int buflen=0;
  3878. 
  3879. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
         ^
  3880. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3881. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );

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

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

tools/tiff2pdf.c:3881:2: 
  3879. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
  3880. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3881. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
         ^
  3882. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
  3883. 

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

tools/tiff2pdf.c:383:2: 
    381. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    382. {
    383. 	thandle_t client = TIFFClientdata(tif);
          ^
    384. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    385. 	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:384:2: 
    382. {
    383. 	thandle_t client = TIFFClientdata(tif);
    384. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    385. 	if (proc)
    386. 		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:385:6: Taking false branch
    383. 	thandle_t client = TIFFClientdata(tif);
    384. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    385. 	if (proc)
              ^
    386. 		return proc(client, data, size);
    387. 	return -1;

tools/tiff2pdf.c:387:2: 
    385. 	if (proc)
    386. 		return proc(client, data, size);
    387. 	return -1;
          ^
    388. }
    389. 

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

tools/tiff2pdf.c:3882:2: 
  3880. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3881. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
  3882. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
         ^
  3883. 
  3884. 	return(written);

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

tools/tiff2pdf.c:383:2: 
    381. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    382. {
    383. 	thandle_t client = TIFFClientdata(tif);
          ^
    384. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    385. 	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:384:2: 
    382. {
    383. 	thandle_t client = TIFFClientdata(tif);
    384. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    385. 	if (proc)
    386. 		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:385:6: Taking false branch
    383. 	thandle_t client = TIFFClientdata(tif);
    384. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    385. 	if (proc)
              ^
    386. 		return proc(client, data, size);
    387. 	return -1;

tools/tiff2pdf.c:387:2: 
    385. 	if (proc)
    386. 		return proc(client, data, size);
    387. 	return -1;
          ^
    388. }
    389. 

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

tools/tiff2pdf.c:3884:2: 
  3882. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
  3883. 
  3884. 	return(written);
         ^
  3885. }
  3886. 

tools/tiff2pdf.c:3885:1: return from a call to t2p_write_pdf_obj_start
  3883. 
  3884. 	return(written);
  3885. }
        ^
  3886. 
  3887. /*

tools/tiff2pdf.c:5512:2: 
5510. 	t2p->pdf_catalog=t2p->pdf_xrefcount;
5511. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5512. 	written += t2p_write_pdf_catalog(t2p, output);
       ^
5513. 	written += t2p_write_pdf_obj_end(output);
5514. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;

tools/tiff2pdf.c:4162:1: start of procedure t2p_write_pdf_catalog()
  4160.  */
  4161. 
  4162. tsize_t t2p_write_pdf_catalog(T2P* t2p, TIFF* output)
        ^
  4163. {
  4164. 	tsize_t written = 0;

tools/tiff2pdf.c:4164:2: 
  4162. tsize_t t2p_write_pdf_catalog(T2P* t2p, TIFF* output)
  4163. {
  4164. 	tsize_t written = 0;
         ^
  4165. 	char buffer[32];
  4166. 	int buflen = 0;

tools/tiff2pdf.c:4166:2: 
  4164. 	tsize_t written = 0;
  4165. 	char buffer[32];
  4166. 	int buflen = 0;
         ^
  4167. 
  4168. 	written += t2pWriteFile(output, 

tools/tiff2pdf.c:4168:2: 
  4166. 	int buflen = 0;
  4167. 
  4168. 	written += t2pWriteFile(output, 
         ^
  4169. 		(tdata_t)"<< \n/Type /Catalog \n/Pages ", 
  4170. 		27);

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

tools/tiff2pdf.c:383:2: 
    381. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    382. {
    383. 	thandle_t client = TIFFClientdata(tif);
          ^
    384. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    385. 	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:384:2: 
    382. {
    383. 	thandle_t client = TIFFClientdata(tif);
    384. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    385. 	if (proc)
    386. 		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:385:6: Taking false branch
    383. 	thandle_t client = TIFFClientdata(tif);
    384. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    385. 	if (proc)
              ^
    386. 		return proc(client, data, size);
    387. 	return -1;

tools/tiff2pdf.c:387:2: 
    385. 	if (proc)
    386. 		return proc(client, data, size);
    387. 	return -1;
          ^
    388. }
    389. 

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

tools/tiff2pdf.c:4171:2: 
  4169. 		(tdata_t)"<< \n/Type /Catalog \n/Pages ", 
  4170. 		27);
  4171. 	buflen = snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)t2p->pdf_pages);
         ^
  4172. 	check_snprintf_ret(t2p, buflen, buffer);
  4173. 	written += t2pWriteFile(output, (tdata_t) buffer,

tools/tiff2pdf.c:4172:2: Taking false branch
  4170. 		27);
  4171. 	buflen = snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)t2p->pdf_pages);
  4172. 	check_snprintf_ret(t2p, buflen, buffer);
         ^
  4173. 	written += t2pWriteFile(output, (tdata_t) buffer,
  4174. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));

tools/tiff2pdf.c:4172:2: Taking false branch
  4170. 		27);
  4171. 	buflen = snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)t2p->pdf_pages);
  4172. 	check_snprintf_ret(t2p, buflen, buffer);
         ^
  4173. 	written += t2pWriteFile(output, (tdata_t) buffer,
  4174. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));

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

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

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

tools/tiff2pdf.c:383:2: 
    381. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    382. {
    383. 	thandle_t client = TIFFClientdata(tif);
          ^
    384. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    385. 	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:384:2: 
    382. {
    383. 	thandle_t client = TIFFClientdata(tif);
    384. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    385. 	if (proc)
    386. 		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:385:6: Taking false branch
    383. 	thandle_t client = TIFFClientdata(tif);
    384. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    385. 	if (proc)
              ^
    386. 		return proc(client, data, size);
    387. 	return -1;

tools/tiff2pdf.c:387:2: 
    385. 	if (proc)
    386. 		return proc(client, data, size);
    387. 	return -1;
          ^
    388. }
    389. 

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

tools/tiff2pdf.c:4175:2: 
  4173. 	written += t2pWriteFile(output, (tdata_t) buffer,
  4174. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));
  4175. 	written += t2pWriteFile(output, (tdata_t) " 0 R \n", 6);
         ^
  4176. 	if(t2p->pdf_fitwindow){
  4177. 		written += t2pWriteFile(output, 

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

tools/tiff2pdf.c:383:2: 
    381. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    382. {
    383. 	thandle_t client = TIFFClientdata(tif);
          ^
    384. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    385. 	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:384:2: 
    382. {
    383. 	thandle_t client = TIFFClientdata(tif);
    384. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    385. 	if (proc)
    386. 		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:385:6: Taking false branch
    383. 	thandle_t client = TIFFClientdata(tif);
    384. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    385. 	if (proc)
              ^
    386. 		return proc(client, data, size);
    387. 	return -1;

tools/tiff2pdf.c:387:2: 
    385. 	if (proc)
    386. 		return proc(client, data, size);
    387. 	return -1;
          ^
    388. }
    389. 

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

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

tools/tiff2pdf.c:4177:3: 
  4175. 	written += t2pWriteFile(output, (tdata_t) " 0 R \n", 6);
  4176. 	if(t2p->pdf_fitwindow){
  4177. 		written += t2pWriteFile(output, 
          ^
  4178. 			(tdata_t) "/ViewerPreferences <</FitWindow true>>\n", 
  4179. 			39);

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

tools/tiff2pdf.c:383:2: 
    381. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    382. {
    383. 	thandle_t client = TIFFClientdata(tif);
          ^
    384. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    385. 	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:384:2: 
    382. {
    383. 	thandle_t client = TIFFClientdata(tif);
    384. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    385. 	if (proc)
    386. 		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:385:6: Taking false branch
    383. 	thandle_t client = TIFFClientdata(tif);
    384. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    385. 	if (proc)
              ^
    386. 		return proc(client, data, size);
    387. 	return -1;

tools/tiff2pdf.c:387:2: 
    385. 	if (proc)
    386. 		return proc(client, data, size);
    387. 	return -1;
          ^
    388. }
    389. 

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

tools/tiff2pdf.c:4181:2: 
  4179. 			39);
  4180. 	}
  4181. 	written += t2pWriteFile(output, (tdata_t)">>\n", 3);
         ^
  4182. 
  4183. 	return(written);

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

tools/tiff2pdf.c:383:2: 
    381. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    382. {
    383. 	thandle_t client = TIFFClientdata(tif);
          ^
    384. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    385. 	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:384:2: 
    382. {
    383. 	thandle_t client = TIFFClientdata(tif);
    384. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    385. 	if (proc)
    386. 		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:385:6: Taking false branch
    383. 	thandle_t client = TIFFClientdata(tif);
    384. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    385. 	if (proc)
              ^
    386. 		return proc(client, data, size);
    387. 	return -1;

tools/tiff2pdf.c:387:2: 
    385. 	if (proc)
    386. 		return proc(client, data, size);
    387. 	return -1;
          ^
    388. }
    389. 

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

tools/tiff2pdf.c:4183:2: 
  4181. 	written += t2pWriteFile(output, (tdata_t)">>\n", 3);
  4182. 
  4183. 	return(written);
         ^
  4184. }
  4185. 

tools/tiff2pdf.c:4184:1: return from a call to t2p_write_pdf_catalog
  4182. 
  4183. 	return(written);
  4184. }
        ^
  4185. 
  4186. /*

tools/tiff2pdf.c:5513:2: 
5511. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5512. 	written += t2p_write_pdf_catalog(t2p, output);
5513. 	written += t2p_write_pdf_obj_end(output);
       ^
5514. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5515. 	t2p->pdf_info=t2p->pdf_xrefcount;

tools/tiff2pdf.c:3891:1: start of procedure t2p_write_pdf_obj_end()
  3889. */
  3890. 
  3891. tsize_t t2p_write_pdf_obj_end(TIFF* output){
        ^
  3892. 
  3893. 	tsize_t written=0;

tools/tiff2pdf.c:3893:2: 
  3891. tsize_t t2p_write_pdf_obj_end(TIFF* output){
  3892. 
  3893. 	tsize_t written=0;
         ^
  3894. 
  3895. 	written += t2pWriteFile(output, (tdata_t) "endobj\n", 7);

tools/tiff2pdf.c:3895:2: 
  3893. 	tsize_t written=0;
  3894. 
  3895. 	written += t2pWriteFile(output, (tdata_t) "endobj\n", 7);
         ^
  3896. 
  3897. 	return(written);

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

tools/tiff2pdf.c:383:2: 
    381. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    382. {
    383. 	thandle_t client = TIFFClientdata(tif);
          ^
    384. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    385. 	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:384:2: 
    382. {
    383. 	thandle_t client = TIFFClientdata(tif);
    384. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    385. 	if (proc)
    386. 		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:385:6: Taking false branch
    383. 	thandle_t client = TIFFClientdata(tif);
    384. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    385. 	if (proc)
              ^
    386. 		return proc(client, data, size);
    387. 	return -1;

tools/tiff2pdf.c:387:2: 
    385. 	if (proc)
    386. 		return proc(client, data, size);
    387. 	return -1;
          ^
    388. }
    389. 

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

tools/tiff2pdf.c:3897:2: 
  3895. 	written += t2pWriteFile(output, (tdata_t) "endobj\n", 7);
  3896. 
  3897. 	return(written);
         ^
  3898. }
  3899. 

tools/tiff2pdf.c:3898:1: return from a call to t2p_write_pdf_obj_end
  3896. 
  3897. 	return(written);
  3898. }
        ^
  3899. 
  3900. /*

tools/tiff2pdf.c:5514:2: 
5512. 	written += t2p_write_pdf_catalog(t2p, output);
5513. 	written += t2p_write_pdf_obj_end(output);
5514. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
       ^
5515. 	t2p->pdf_info=t2p->pdf_xrefcount;
5516. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);

tools/tiff2pdf.c:5515:2: 
5513. 	written += t2p_write_pdf_obj_end(output);
5514. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5515. 	t2p->pdf_info=t2p->pdf_xrefcount;
       ^
5516. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5517. 	written += t2p_write_pdf_info(t2p, input, output);

tools/tiff2pdf.c:5516:2: 
5514. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5515. 	t2p->pdf_info=t2p->pdf_xrefcount;
5516. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
       ^
5517. 	written += t2p_write_pdf_info(t2p, input, output);
5518. 	written += t2p_write_pdf_obj_end(output);

tools/tiff2pdf.c:3873:1: start of procedure t2p_write_pdf_obj_start()
  3871. */
  3872. 
  3873. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
        ^
  3874. 
  3875. 	tsize_t written=0;

tools/tiff2pdf.c:3875:2: 
  3873. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
  3874. 
  3875. 	tsize_t written=0;
         ^
  3876. 	char buffer[32];
  3877. 	int buflen=0;

tools/tiff2pdf.c:3877:2: 
  3875. 	tsize_t written=0;
  3876. 	char buffer[32];
  3877. 	int buflen=0;
         ^
  3878. 
  3879. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);

tools/tiff2pdf.c:3879:2: 
  3877. 	int buflen=0;
  3878. 
  3879. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
         ^
  3880. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3881. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );

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

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

tools/tiff2pdf.c:3881:2: 
  3879. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
  3880. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3881. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
         ^
  3882. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
  3883. 

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

tools/tiff2pdf.c:383:2: 
    381. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    382. {
    383. 	thandle_t client = TIFFClientdata(tif);
          ^
    384. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    385. 	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:384:2: 
    382. {
    383. 	thandle_t client = TIFFClientdata(tif);
    384. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    385. 	if (proc)
    386. 		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:385:6: Taking false branch
    383. 	thandle_t client = TIFFClientdata(tif);
    384. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    385. 	if (proc)
              ^
    386. 		return proc(client, data, size);
    387. 	return -1;

tools/tiff2pdf.c:387:2: 
    385. 	if (proc)
    386. 		return proc(client, data, size);
    387. 	return -1;
          ^
    388. }
    389. 

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

tools/tiff2pdf.c:3882:2: 
  3880. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3881. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
  3882. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
         ^
  3883. 
  3884. 	return(written);

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

tools/tiff2pdf.c:383:2: 
    381. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    382. {
    383. 	thandle_t client = TIFFClientdata(tif);
          ^
    384. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    385. 	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:384:2: 
    382. {
    383. 	thandle_t client = TIFFClientdata(tif);
    384. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    385. 	if (proc)
    386. 		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:385:6: Taking false branch
    383. 	thandle_t client = TIFFClientdata(tif);
    384. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    385. 	if (proc)
              ^
    386. 		return proc(client, data, size);
    387. 	return -1;

tools/tiff2pdf.c:387:2: 
    385. 	if (proc)
    386. 		return proc(client, data, size);
    387. 	return -1;
          ^
    388. }
    389. 

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

tools/tiff2pdf.c:3884:2: 
  3882. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
  3883. 
  3884. 	return(written);
         ^
  3885. }
  3886. 

tools/tiff2pdf.c:3885:1: return from a call to t2p_write_pdf_obj_start
  3883. 
  3884. 	return(written);
  3885. }
        ^
  3886. 
  3887. /*

tools/tiff2pdf.c:5517:2: Skipping t2p_write_pdf_info(): empty list of specs
5515. 	t2p->pdf_info=t2p->pdf_xrefcount;
5516. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5517. 	written += t2p_write_pdf_info(t2p, input, output);
       ^
5518. 	written += t2p_write_pdf_obj_end(output);
5519. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
