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

tools/tiff2pdf.c:5304:1: start of procedure t2p_write_pdf()
5302. */
5303. 
5304. tsize_t t2p_write_pdf(T2P* t2p, TIFF* input, TIFF* output){
      ^
5305. 
5306. 	tsize_t written=0;

tools/tiff2pdf.c:5306:2: 
5304. tsize_t t2p_write_pdf(T2P* t2p, TIFF* input, TIFF* output){
5305. 
5306. 	tsize_t written=0;
       ^
5307. 	ttile_t i2=0;
5308. 	tsize_t streamlen=0;

tools/tiff2pdf.c:5307:2: 
5305. 
5306. 	tsize_t written=0;
5307. 	ttile_t i2=0;
       ^
5308. 	tsize_t streamlen=0;
5309. 	uint16 i=0;

tools/tiff2pdf.c:5308:2: 
5306. 	tsize_t written=0;
5307. 	ttile_t i2=0;
5308. 	tsize_t streamlen=0;
       ^
5309. 	uint16 i=0;
5310. 

tools/tiff2pdf.c:5309:2: 
5307. 	ttile_t i2=0;
5308. 	tsize_t streamlen=0;
5309. 	uint16 i=0;
       ^
5310. 
5311. 	t2p_read_tiff_init(t2p, input);

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

tools/tiff2pdf.c:5312:5: Taking false branch
5310. 
5311. 	t2p_read_tiff_init(t2p, input);
5312. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
          ^
5313. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
5314. 	if(t2p->pdf_xrefoffsets==NULL){

tools/tiff2pdf.c:5313:46: Condition is true
5311. 	t2p_read_tiff_init(t2p, input);
5312. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5313. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
                                                   ^
5314. 	if(t2p->pdf_xrefoffsets==NULL){
5315. 		TIFFError(

tools/tiff2pdf.c:5313:46: Condition is true
5311. 	t2p_read_tiff_init(t2p, input);
5312. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5313. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
                                                   ^
5314. 	if(t2p->pdf_xrefoffsets==NULL){
5315. 		TIFFError(

tools/tiff2pdf.c:5313:2: 
5311. 	t2p_read_tiff_init(t2p, input);
5312. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5313. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
       ^
5314. 	if(t2p->pdf_xrefoffsets==NULL){
5315. 		TIFFError(

libtiff/tif_unix.c:257:1: start of procedure _TIFFmalloc()
  255. #endif
  256. 
  257. void*
       ^
  258. _TIFFmalloc(tmsize_t s)
  259. {

libtiff/tif_unix.c:260:13: Taking false branch
  258. _TIFFmalloc(tmsize_t s)
  259. {
  260.         if (s == 0)
                   ^
  261.                 return ((void *) NULL);
  262. 

libtiff/tif_unix.c:263:2: 
  261.                 return ((void *) NULL);
  262. 
  263. 	return (malloc((size_t) s));
        ^
  264. }
  265. 

libtiff/tif_unix.c:264:1: return from a call to _TIFFmalloc
  262. 
  263. 	return (malloc((size_t) s));
  264. }
       ^
  265. 
  266. void

tools/tiff2pdf.c:5314:5: Taking false branch
5312. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5313. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
5314. 	if(t2p->pdf_xrefoffsets==NULL){
          ^
5315. 		TIFFError(
5316. 			TIFF2PDF_MODULE, 

tools/tiff2pdf.c:5322:2: 
5320. 		return(written);
5321. 	}
5322. 	t2p->pdf_xrefcount=0;
       ^
5323. 	t2p->pdf_catalog=1;
5324. 	t2p->pdf_info=2;

tools/tiff2pdf.c:5323:2: 
5321. 	}
5322. 	t2p->pdf_xrefcount=0;
5323. 	t2p->pdf_catalog=1;
       ^
5324. 	t2p->pdf_info=2;
5325. 	t2p->pdf_pages=3;

tools/tiff2pdf.c:5324:2: 
5322. 	t2p->pdf_xrefcount=0;
5323. 	t2p->pdf_catalog=1;
5324. 	t2p->pdf_info=2;
       ^
5325. 	t2p->pdf_pages=3;
5326. 	written += t2p_write_pdf_header(t2p, output);

tools/tiff2pdf.c:5325:2: 
5323. 	t2p->pdf_catalog=1;
5324. 	t2p->pdf_info=2;
5325. 	t2p->pdf_pages=3;
       ^
5326. 	written += t2p_write_pdf_header(t2p, output);
5327. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;

tools/tiff2pdf.c:5326:2: 
5324. 	t2p->pdf_info=2;
5325. 	t2p->pdf_pages=3;
5326. 	written += t2p_write_pdf_header(t2p, output);
       ^
5327. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5328. 	t2p->pdf_catalog=t2p->pdf_xrefcount;

tools/tiff2pdf.c:3717:1: start of procedure t2p_write_pdf_header()
  3715. */
  3716. 
  3717. tsize_t t2p_write_pdf_header(T2P* t2p, TIFF* output){
        ^
  3718. 
  3719. 	tsize_t written=0;

tools/tiff2pdf.c:3719:2: 
  3717. tsize_t t2p_write_pdf_header(T2P* t2p, TIFF* output){
  3718. 
  3719. 	tsize_t written=0;
         ^
  3720. 	char buffer[16];
  3721. 	int buflen=0;

tools/tiff2pdf.c:3721:2: 
  3719. 	tsize_t written=0;
  3720. 	char buffer[16];
  3721. 	int buflen=0;
         ^
  3722. 	
  3723. 	buflen = snprintf(buffer, sizeof(buffer), "%%PDF-%u.%u ",

tools/tiff2pdf.c:3723:2: 
  3721. 	int buflen=0;
  3722. 	
  3723. 	buflen = snprintf(buffer, sizeof(buffer), "%%PDF-%u.%u ",
         ^
  3724. 			  t2p->pdf_majorversion&0xff,
  3725. 			  t2p->pdf_minorversion&0xff);

tools/tiff2pdf.c:3726:2: 
  3724. 			  t2p->pdf_majorversion&0xff,
  3725. 			  t2p->pdf_minorversion&0xff);
  3726. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen);
         ^
  3727. 	written += t2pWriteFile(output, (tdata_t)"\n%\342\343\317\323\n", 7);
  3728. 

tools/tiff2pdf.c:364:1: start of procedure t2pWriteFile()
    362. }
    363. 
    364. static tmsize_t 
         ^
    365. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    366. {

tools/tiff2pdf.c:367:2: 
    365. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    366. {
    367. 	thandle_t client = TIFFClientdata(tif);
          ^
    368. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    369. 	if (proc)

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

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

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

tools/tiff2pdf.c:368:2: 
    366. {
    367. 	thandle_t client = TIFFClientdata(tif);
    368. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    369. 	if (proc)
    370. 		return proc(client, data, size);

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

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

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

tools/tiff2pdf.c:369:6: Taking false branch
    367. 	thandle_t client = TIFFClientdata(tif);
    368. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    369. 	if (proc)
              ^
    370. 		return proc(client, data, size);
    371. 	return -1;

tools/tiff2pdf.c:371:2: 
    369. 	if (proc)
    370. 		return proc(client, data, size);
    371. 	return -1;
          ^
    372. }
    373. 

tools/tiff2pdf.c:372:1: return from a call to t2pWriteFile
    370. 		return proc(client, data, size);
    371. 	return -1;
    372. }
         ^
    373. 
    374. static uint64

tools/tiff2pdf.c:3727:2: 
  3725. 			  t2p->pdf_minorversion&0xff);
  3726. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen);
  3727. 	written += t2pWriteFile(output, (tdata_t)"\n%\342\343\317\323\n", 7);
         ^
  3728. 
  3729. 	return(written);

tools/tiff2pdf.c:364:1: start of procedure t2pWriteFile()
    362. }
    363. 
    364. static tmsize_t 
         ^
    365. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    366. {

tools/tiff2pdf.c:367:2: 
    365. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    366. {
    367. 	thandle_t client = TIFFClientdata(tif);
          ^
    368. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    369. 	if (proc)

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

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

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

tools/tiff2pdf.c:368:2: 
    366. {
    367. 	thandle_t client = TIFFClientdata(tif);
    368. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    369. 	if (proc)
    370. 		return proc(client, data, size);

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

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

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

tools/tiff2pdf.c:369:6: Taking false branch
    367. 	thandle_t client = TIFFClientdata(tif);
    368. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    369. 	if (proc)
              ^
    370. 		return proc(client, data, size);
    371. 	return -1;

tools/tiff2pdf.c:371:2: 
    369. 	if (proc)
    370. 		return proc(client, data, size);
    371. 	return -1;
          ^
    372. }
    373. 

tools/tiff2pdf.c:372:1: return from a call to t2pWriteFile
    370. 		return proc(client, data, size);
    371. 	return -1;
    372. }
         ^
    373. 
    374. static uint64

tools/tiff2pdf.c:3729:2: 
  3727. 	written += t2pWriteFile(output, (tdata_t)"\n%\342\343\317\323\n", 7);
  3728. 
  3729. 	return(written);
         ^
  3730. }
  3731. 

tools/tiff2pdf.c:3730:1: return from a call to t2p_write_pdf_header
  3728. 
  3729. 	return(written);
  3730. }
        ^
  3731. 
  3732. /*

tools/tiff2pdf.c:5327:2: 
5325. 	t2p->pdf_pages=3;
5326. 	written += t2p_write_pdf_header(t2p, output);
5327. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
       ^
5328. 	t2p->pdf_catalog=t2p->pdf_xrefcount;
5329. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);

tools/tiff2pdf.c:5328:2: 
5326. 	written += t2p_write_pdf_header(t2p, output);
5327. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5328. 	t2p->pdf_catalog=t2p->pdf_xrefcount;
       ^
5329. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5330. 	written += t2p_write_pdf_catalog(t2p, output);

tools/tiff2pdf.c:5329:2: 
5327. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5328. 	t2p->pdf_catalog=t2p->pdf_xrefcount;
5329. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
       ^
5330. 	written += t2p_write_pdf_catalog(t2p, output);
5331. 	written += t2p_write_pdf_obj_end(output);

tools/tiff2pdf.c:3736:1: start of procedure t2p_write_pdf_obj_start()
  3734. */
  3735. 
  3736. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
        ^
  3737. 
  3738. 	tsize_t written=0;

tools/tiff2pdf.c:3738:2: 
  3736. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
  3737. 
  3738. 	tsize_t written=0;
         ^
  3739. 	char buffer[32];
  3740. 	int buflen=0;

tools/tiff2pdf.c:3740:2: 
  3738. 	tsize_t written=0;
  3739. 	char buffer[32];
  3740. 	int buflen=0;
         ^
  3741. 
  3742. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);

tools/tiff2pdf.c:3742:2: 
  3740. 	int buflen=0;
  3741. 
  3742. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
         ^
  3743. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
  3744. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);

tools/tiff2pdf.c:3743:2: 
  3741. 
  3742. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
  3743. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
         ^
  3744. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
  3745. 

tools/tiff2pdf.c:364:1: start of procedure t2pWriteFile()
    362. }
    363. 
    364. static tmsize_t 
         ^
    365. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    366. {

tools/tiff2pdf.c:367:2: 
    365. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    366. {
    367. 	thandle_t client = TIFFClientdata(tif);
          ^
    368. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    369. 	if (proc)

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

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

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

tools/tiff2pdf.c:368:2: 
    366. {
    367. 	thandle_t client = TIFFClientdata(tif);
    368. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    369. 	if (proc)
    370. 		return proc(client, data, size);

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

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

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

tools/tiff2pdf.c:369:6: Taking false branch
    367. 	thandle_t client = TIFFClientdata(tif);
    368. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    369. 	if (proc)
              ^
    370. 		return proc(client, data, size);
    371. 	return -1;

tools/tiff2pdf.c:371:2: 
    369. 	if (proc)
    370. 		return proc(client, data, size);
    371. 	return -1;
          ^
    372. }
    373. 

tools/tiff2pdf.c:372:1: return from a call to t2pWriteFile
    370. 		return proc(client, data, size);
    371. 	return -1;
    372. }
         ^
    373. 
    374. static uint64

tools/tiff2pdf.c:3744:2: 
  3742. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
  3743. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
  3744. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
         ^
  3745. 
  3746. 	return(written);

tools/tiff2pdf.c:364:1: start of procedure t2pWriteFile()
    362. }
    363. 
    364. static tmsize_t 
         ^
    365. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    366. {

tools/tiff2pdf.c:367:2: 
    365. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    366. {
    367. 	thandle_t client = TIFFClientdata(tif);
          ^
    368. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    369. 	if (proc)

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

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

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

tools/tiff2pdf.c:368:2: 
    366. {
    367. 	thandle_t client = TIFFClientdata(tif);
    368. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    369. 	if (proc)
    370. 		return proc(client, data, size);

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

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

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

tools/tiff2pdf.c:369:6: Taking false branch
    367. 	thandle_t client = TIFFClientdata(tif);
    368. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    369. 	if (proc)
              ^
    370. 		return proc(client, data, size);
    371. 	return -1;

tools/tiff2pdf.c:371:2: 
    369. 	if (proc)
    370. 		return proc(client, data, size);
    371. 	return -1;
          ^
    372. }
    373. 

tools/tiff2pdf.c:372:1: return from a call to t2pWriteFile
    370. 		return proc(client, data, size);
    371. 	return -1;
    372. }
         ^
    373. 
    374. static uint64

tools/tiff2pdf.c:3746:2: 
  3744. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
  3745. 
  3746. 	return(written);
         ^
  3747. }
  3748. 

tools/tiff2pdf.c:3747:1: return from a call to t2p_write_pdf_obj_start
  3745. 
  3746. 	return(written);
  3747. }
        ^
  3748. 
  3749. /*

tools/tiff2pdf.c:5330:2: 
5328. 	t2p->pdf_catalog=t2p->pdf_xrefcount;
5329. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5330. 	written += t2p_write_pdf_catalog(t2p, output);
       ^
5331. 	written += t2p_write_pdf_obj_end(output);
5332. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;

tools/tiff2pdf.c:4022:1: start of procedure t2p_write_pdf_catalog()
  4020.  */
  4021. 
  4022. tsize_t t2p_write_pdf_catalog(T2P* t2p, TIFF* output)
        ^
  4023. {
  4024. 	tsize_t written = 0;

tools/tiff2pdf.c:4024:2: 
  4022. tsize_t t2p_write_pdf_catalog(T2P* t2p, TIFF* output)
  4023. {
  4024. 	tsize_t written = 0;
         ^
  4025. 	char buffer[32];
  4026. 	int buflen = 0;

tools/tiff2pdf.c:4026:2: 
  4024. 	tsize_t written = 0;
  4025. 	char buffer[32];
  4026. 	int buflen = 0;
         ^
  4027. 
  4028. 	written += t2pWriteFile(output, 

tools/tiff2pdf.c:4028:2: 
  4026. 	int buflen = 0;
  4027. 
  4028. 	written += t2pWriteFile(output, 
         ^
  4029. 		(tdata_t)"<< \n/Type /Catalog \n/Pages ", 
  4030. 		27);

tools/tiff2pdf.c:364:1: start of procedure t2pWriteFile()
    362. }
    363. 
    364. static tmsize_t 
         ^
    365. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    366. {

tools/tiff2pdf.c:367:2: 
    365. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    366. {
    367. 	thandle_t client = TIFFClientdata(tif);
          ^
    368. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    369. 	if (proc)

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

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

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

tools/tiff2pdf.c:368:2: 
    366. {
    367. 	thandle_t client = TIFFClientdata(tif);
    368. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    369. 	if (proc)
    370. 		return proc(client, data, size);

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

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

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

tools/tiff2pdf.c:369:6: Taking false branch
    367. 	thandle_t client = TIFFClientdata(tif);
    368. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    369. 	if (proc)
              ^
    370. 		return proc(client, data, size);
    371. 	return -1;

tools/tiff2pdf.c:371:2: 
    369. 	if (proc)
    370. 		return proc(client, data, size);
    371. 	return -1;
          ^
    372. }
    373. 

tools/tiff2pdf.c:372:1: return from a call to t2pWriteFile
    370. 		return proc(client, data, size);
    371. 	return -1;
    372. }
         ^
    373. 
    374. static uint64

tools/tiff2pdf.c:4031:2: 
  4029. 		(tdata_t)"<< \n/Type /Catalog \n/Pages ", 
  4030. 		27);
  4031. 	buflen = snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)t2p->pdf_pages);
         ^
  4032. 	written += t2pWriteFile(output, (tdata_t) buffer,
  4033. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));

tools/tiff2pdf.c:4033:5: Condition is false
  4031. 	buflen = snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)t2p->pdf_pages);
  4032. 	written += t2pWriteFile(output, (tdata_t) buffer,
  4033. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));
            ^
  4034. 	written += t2pWriteFile(output, (tdata_t) " 0 R \n", 6);
  4035. 	if(t2p->pdf_fitwindow){

tools/tiff2pdf.c:4032:2: 
  4030. 		27);
  4031. 	buflen = snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)t2p->pdf_pages);
  4032. 	written += t2pWriteFile(output, (tdata_t) buffer,
         ^
  4033. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));
  4034. 	written += t2pWriteFile(output, (tdata_t) " 0 R \n", 6);

tools/tiff2pdf.c:364:1: start of procedure t2pWriteFile()
    362. }
    363. 
    364. static tmsize_t 
         ^
    365. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    366. {

tools/tiff2pdf.c:367:2: 
    365. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    366. {
    367. 	thandle_t client = TIFFClientdata(tif);
          ^
    368. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    369. 	if (proc)

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

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

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

tools/tiff2pdf.c:368:2: 
    366. {
    367. 	thandle_t client = TIFFClientdata(tif);
    368. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    369. 	if (proc)
    370. 		return proc(client, data, size);

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

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

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

tools/tiff2pdf.c:369:6: Taking false branch
    367. 	thandle_t client = TIFFClientdata(tif);
    368. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    369. 	if (proc)
              ^
    370. 		return proc(client, data, size);
    371. 	return -1;

tools/tiff2pdf.c:371:2: 
    369. 	if (proc)
    370. 		return proc(client, data, size);
    371. 	return -1;
          ^
    372. }
    373. 

tools/tiff2pdf.c:372:1: return from a call to t2pWriteFile
    370. 		return proc(client, data, size);
    371. 	return -1;
    372. }
         ^
    373. 
    374. static uint64

tools/tiff2pdf.c:4034:2: 
  4032. 	written += t2pWriteFile(output, (tdata_t) buffer,
  4033. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));
  4034. 	written += t2pWriteFile(output, (tdata_t) " 0 R \n", 6);
         ^
  4035. 	if(t2p->pdf_fitwindow){
  4036. 		written += t2pWriteFile(output, 

tools/tiff2pdf.c:364:1: start of procedure t2pWriteFile()
    362. }
    363. 
    364. static tmsize_t 
         ^
    365. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    366. {

tools/tiff2pdf.c:367:2: 
    365. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    366. {
    367. 	thandle_t client = TIFFClientdata(tif);
          ^
    368. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    369. 	if (proc)

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

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

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

tools/tiff2pdf.c:368:2: 
    366. {
    367. 	thandle_t client = TIFFClientdata(tif);
    368. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    369. 	if (proc)
    370. 		return proc(client, data, size);

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

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

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

tools/tiff2pdf.c:369:6: Taking false branch
    367. 	thandle_t client = TIFFClientdata(tif);
    368. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    369. 	if (proc)
              ^
    370. 		return proc(client, data, size);
    371. 	return -1;

tools/tiff2pdf.c:371:2: 
    369. 	if (proc)
    370. 		return proc(client, data, size);
    371. 	return -1;
          ^
    372. }
    373. 

tools/tiff2pdf.c:372:1: return from a call to t2pWriteFile
    370. 		return proc(client, data, size);
    371. 	return -1;
    372. }
         ^
    373. 
    374. static uint64

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

tools/tiff2pdf.c:4036:3: 
  4034. 	written += t2pWriteFile(output, (tdata_t) " 0 R \n", 6);
  4035. 	if(t2p->pdf_fitwindow){
  4036. 		written += t2pWriteFile(output, 
          ^
  4037. 			(tdata_t) "/ViewerPreferences <</FitWindow true>>\n", 
  4038. 			39);

tools/tiff2pdf.c:364:1: start of procedure t2pWriteFile()
    362. }
    363. 
    364. static tmsize_t 
         ^
    365. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    366. {

tools/tiff2pdf.c:367:2: 
    365. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    366. {
    367. 	thandle_t client = TIFFClientdata(tif);
          ^
    368. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    369. 	if (proc)

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

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

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

tools/tiff2pdf.c:368:2: 
    366. {
    367. 	thandle_t client = TIFFClientdata(tif);
    368. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    369. 	if (proc)
    370. 		return proc(client, data, size);

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

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

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

tools/tiff2pdf.c:369:6: Taking false branch
    367. 	thandle_t client = TIFFClientdata(tif);
    368. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    369. 	if (proc)
              ^
    370. 		return proc(client, data, size);
    371. 	return -1;

tools/tiff2pdf.c:371:2: 
    369. 	if (proc)
    370. 		return proc(client, data, size);
    371. 	return -1;
          ^
    372. }
    373. 

tools/tiff2pdf.c:372:1: return from a call to t2pWriteFile
    370. 		return proc(client, data, size);
    371. 	return -1;
    372. }
         ^
    373. 
    374. static uint64

tools/tiff2pdf.c:4040:2: 
  4038. 			39);
  4039. 	}
  4040. 	written += t2pWriteFile(output, (tdata_t)">>\n", 3);
         ^
  4041. 
  4042. 	return(written);

tools/tiff2pdf.c:364:1: start of procedure t2pWriteFile()
    362. }
    363. 
    364. static tmsize_t 
         ^
    365. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    366. {

tools/tiff2pdf.c:367:2: 
    365. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    366. {
    367. 	thandle_t client = TIFFClientdata(tif);
          ^
    368. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    369. 	if (proc)

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

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

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

tools/tiff2pdf.c:368:2: 
    366. {
    367. 	thandle_t client = TIFFClientdata(tif);
    368. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    369. 	if (proc)
    370. 		return proc(client, data, size);

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

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

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

tools/tiff2pdf.c:369:6: Taking false branch
    367. 	thandle_t client = TIFFClientdata(tif);
    368. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    369. 	if (proc)
              ^
    370. 		return proc(client, data, size);
    371. 	return -1;

tools/tiff2pdf.c:371:2: 
    369. 	if (proc)
    370. 		return proc(client, data, size);
    371. 	return -1;
          ^
    372. }
    373. 

tools/tiff2pdf.c:372:1: return from a call to t2pWriteFile
    370. 		return proc(client, data, size);
    371. 	return -1;
    372. }
         ^
    373. 
    374. static uint64

tools/tiff2pdf.c:4042:2: 
  4040. 	written += t2pWriteFile(output, (tdata_t)">>\n", 3);
  4041. 
  4042. 	return(written);
         ^
  4043. }
  4044. 

tools/tiff2pdf.c:4043:1: return from a call to t2p_write_pdf_catalog
  4041. 
  4042. 	return(written);
  4043. }
        ^
  4044. 
  4045. /*

tools/tiff2pdf.c:5331:2: 
5329. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5330. 	written += t2p_write_pdf_catalog(t2p, output);
5331. 	written += t2p_write_pdf_obj_end(output);
       ^
5332. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5333. 	t2p->pdf_info=t2p->pdf_xrefcount;

tools/tiff2pdf.c:3753:1: start of procedure t2p_write_pdf_obj_end()
  3751. */
  3752. 
  3753. tsize_t t2p_write_pdf_obj_end(TIFF* output){
        ^
  3754. 
  3755. 	tsize_t written=0;

tools/tiff2pdf.c:3755:2: 
  3753. tsize_t t2p_write_pdf_obj_end(TIFF* output){
  3754. 
  3755. 	tsize_t written=0;
         ^
  3756. 
  3757. 	written += t2pWriteFile(output, (tdata_t) "endobj\n", 7);

tools/tiff2pdf.c:3757:2: 
  3755. 	tsize_t written=0;
  3756. 
  3757. 	written += t2pWriteFile(output, (tdata_t) "endobj\n", 7);
         ^
  3758. 
  3759. 	return(written);

tools/tiff2pdf.c:364:1: start of procedure t2pWriteFile()
    362. }
    363. 
    364. static tmsize_t 
         ^
    365. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    366. {

tools/tiff2pdf.c:367:2: 
    365. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    366. {
    367. 	thandle_t client = TIFFClientdata(tif);
          ^
    368. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    369. 	if (proc)

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

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

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

tools/tiff2pdf.c:368:2: 
    366. {
    367. 	thandle_t client = TIFFClientdata(tif);
    368. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    369. 	if (proc)
    370. 		return proc(client, data, size);

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

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

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

tools/tiff2pdf.c:369:6: Taking false branch
    367. 	thandle_t client = TIFFClientdata(tif);
    368. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    369. 	if (proc)
              ^
    370. 		return proc(client, data, size);
    371. 	return -1;

tools/tiff2pdf.c:371:2: 
    369. 	if (proc)
    370. 		return proc(client, data, size);
    371. 	return -1;
          ^
    372. }
    373. 

tools/tiff2pdf.c:372:1: return from a call to t2pWriteFile
    370. 		return proc(client, data, size);
    371. 	return -1;
    372. }
         ^
    373. 
    374. static uint64

tools/tiff2pdf.c:3759:2: 
  3757. 	written += t2pWriteFile(output, (tdata_t) "endobj\n", 7);
  3758. 
  3759. 	return(written);
         ^
  3760. }
  3761. 

tools/tiff2pdf.c:3760:1: return from a call to t2p_write_pdf_obj_end
  3758. 
  3759. 	return(written);
  3760. }
        ^
  3761. 
  3762. /*

tools/tiff2pdf.c:5332:2: 
5330. 	written += t2p_write_pdf_catalog(t2p, output);
5331. 	written += t2p_write_pdf_obj_end(output);
5332. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
       ^
5333. 	t2p->pdf_info=t2p->pdf_xrefcount;
5334. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);

tools/tiff2pdf.c:5333:2: 
5331. 	written += t2p_write_pdf_obj_end(output);
5332. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5333. 	t2p->pdf_info=t2p->pdf_xrefcount;
       ^
5334. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5335. 	written += t2p_write_pdf_info(t2p, input, output);

tools/tiff2pdf.c:5334:2: 
5332. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5333. 	t2p->pdf_info=t2p->pdf_xrefcount;
5334. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
       ^
5335. 	written += t2p_write_pdf_info(t2p, input, output);
5336. 	written += t2p_write_pdf_obj_end(output);

tools/tiff2pdf.c:3736:1: start of procedure t2p_write_pdf_obj_start()
  3734. */
  3735. 
  3736. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
        ^
  3737. 
  3738. 	tsize_t written=0;

tools/tiff2pdf.c:3738:2: 
  3736. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
  3737. 
  3738. 	tsize_t written=0;
         ^
  3739. 	char buffer[32];
  3740. 	int buflen=0;

tools/tiff2pdf.c:3740:2: 
  3738. 	tsize_t written=0;
  3739. 	char buffer[32];
  3740. 	int buflen=0;
         ^
  3741. 
  3742. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);

tools/tiff2pdf.c:3742:2: 
  3740. 	int buflen=0;
  3741. 
  3742. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
         ^
  3743. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
  3744. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);

tools/tiff2pdf.c:3743:2: 
  3741. 
  3742. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
  3743. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
         ^
  3744. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
  3745. 

tools/tiff2pdf.c:364:1: start of procedure t2pWriteFile()
    362. }
    363. 
    364. static tmsize_t 
         ^
    365. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    366. {

tools/tiff2pdf.c:367:2: 
    365. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    366. {
    367. 	thandle_t client = TIFFClientdata(tif);
          ^
    368. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    369. 	if (proc)

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

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

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

tools/tiff2pdf.c:368:2: 
    366. {
    367. 	thandle_t client = TIFFClientdata(tif);
    368. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    369. 	if (proc)
    370. 		return proc(client, data, size);

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

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

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

tools/tiff2pdf.c:369:6: Taking false branch
    367. 	thandle_t client = TIFFClientdata(tif);
    368. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    369. 	if (proc)
              ^
    370. 		return proc(client, data, size);
    371. 	return -1;

tools/tiff2pdf.c:371:2: 
    369. 	if (proc)
    370. 		return proc(client, data, size);
    371. 	return -1;
          ^
    372. }
    373. 

tools/tiff2pdf.c:372:1: return from a call to t2pWriteFile
    370. 		return proc(client, data, size);
    371. 	return -1;
    372. }
         ^
    373. 
    374. static uint64

tools/tiff2pdf.c:3744:2: 
  3742. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
  3743. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
  3744. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
         ^
  3745. 
  3746. 	return(written);

tools/tiff2pdf.c:364:1: start of procedure t2pWriteFile()
    362. }
    363. 
    364. static tmsize_t 
         ^
    365. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    366. {

tools/tiff2pdf.c:367:2: 
    365. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    366. {
    367. 	thandle_t client = TIFFClientdata(tif);
          ^
    368. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    369. 	if (proc)

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

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

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

tools/tiff2pdf.c:368:2: 
    366. {
    367. 	thandle_t client = TIFFClientdata(tif);
    368. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    369. 	if (proc)
    370. 		return proc(client, data, size);

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

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

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

tools/tiff2pdf.c:369:6: Taking false branch
    367. 	thandle_t client = TIFFClientdata(tif);
    368. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    369. 	if (proc)
              ^
    370. 		return proc(client, data, size);
    371. 	return -1;

tools/tiff2pdf.c:371:2: 
    369. 	if (proc)
    370. 		return proc(client, data, size);
    371. 	return -1;
          ^
    372. }
    373. 

tools/tiff2pdf.c:372:1: return from a call to t2pWriteFile
    370. 		return proc(client, data, size);
    371. 	return -1;
    372. }
         ^
    373. 
    374. static uint64

tools/tiff2pdf.c:3746:2: 
  3744. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
  3745. 
  3746. 	return(written);
         ^
  3747. }
  3748. 

tools/tiff2pdf.c:3747:1: return from a call to t2p_write_pdf_obj_start
  3745. 
  3746. 	return(written);
  3747. }
        ^
  3748. 
  3749. /*

tools/tiff2pdf.c:5335:2: Skipping t2p_write_pdf_info(): empty list of specs
5333. 	t2p->pdf_info=t2p->pdf_xrefcount;
5334. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5335. 	written += t2p_write_pdf_info(t2p, input, output);
       ^
5336. 	written += t2p_write_pdf_obj_end(output);
5337. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
