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

tools/tiff2pdf.c:5212:1: start of procedure t2p_write_pdf()
5210. */
5211. 
5212. tsize_t t2p_write_pdf(T2P* t2p, TIFF* input, TIFF* output){
      ^
5213. 
5214. 	tsize_t written=0;

tools/tiff2pdf.c:5214:2: 
5212. tsize_t t2p_write_pdf(T2P* t2p, TIFF* input, TIFF* output){
5213. 
5214. 	tsize_t written=0;
       ^
5215. 	ttile_t i2=0;
5216. 	tsize_t streamlen=0;

tools/tiff2pdf.c:5215:2: 
5213. 
5214. 	tsize_t written=0;
5215. 	ttile_t i2=0;
       ^
5216. 	tsize_t streamlen=0;
5217. 	uint16 i=0;

tools/tiff2pdf.c:5216:2: 
5214. 	tsize_t written=0;
5215. 	ttile_t i2=0;
5216. 	tsize_t streamlen=0;
       ^
5217. 	uint16 i=0;
5218. 

tools/tiff2pdf.c:5217:2: 
5215. 	ttile_t i2=0;
5216. 	tsize_t streamlen=0;
5217. 	uint16 i=0;
       ^
5218. 
5219. 	t2p_read_tiff_init(t2p, input);

tools/tiff2pdf.c:5219:2: Skipping t2p_read_tiff_init(): empty list of specs
5217. 	uint16 i=0;
5218. 
5219. 	t2p_read_tiff_init(t2p, input);
       ^
5220. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5221. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(t2p->pdf_xrefcount * sizeof(uint32) );

tools/tiff2pdf.c:5220:5: Taking false branch
5218. 
5219. 	t2p_read_tiff_init(t2p, input);
5220. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
          ^
5221. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(t2p->pdf_xrefcount * sizeof(uint32) );
5222. 	if(t2p->pdf_xrefoffsets==NULL){

tools/tiff2pdf.c:5221:2: 
5219. 	t2p_read_tiff_init(t2p, input);
5220. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5221. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(t2p->pdf_xrefcount * sizeof(uint32) );
       ^
5222. 	if(t2p->pdf_xrefoffsets==NULL){
5223. 		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:5222:5: Taking false branch
5220. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5221. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(t2p->pdf_xrefcount * sizeof(uint32) );
5222. 	if(t2p->pdf_xrefoffsets==NULL){
          ^
5223. 		TIFFError(
5224. 			TIFF2PDF_MODULE, 

tools/tiff2pdf.c:5230:2: 
5228. 		return(written);
5229. 	}
5230. 	t2p->pdf_xrefcount=0;
       ^
5231. 	t2p->pdf_catalog=1;
5232. 	t2p->pdf_info=2;

tools/tiff2pdf.c:5231:2: 
5229. 	}
5230. 	t2p->pdf_xrefcount=0;
5231. 	t2p->pdf_catalog=1;
       ^
5232. 	t2p->pdf_info=2;
5233. 	t2p->pdf_pages=3;

tools/tiff2pdf.c:5232:2: 
5230. 	t2p->pdf_xrefcount=0;
5231. 	t2p->pdf_catalog=1;
5232. 	t2p->pdf_info=2;
       ^
5233. 	t2p->pdf_pages=3;
5234. 	written += t2p_write_pdf_header(t2p, output);

tools/tiff2pdf.c:5233:2: 
5231. 	t2p->pdf_catalog=1;
5232. 	t2p->pdf_info=2;
5233. 	t2p->pdf_pages=3;
       ^
5234. 	written += t2p_write_pdf_header(t2p, output);
5235. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;

tools/tiff2pdf.c:5234:2: 
5232. 	t2p->pdf_info=2;
5233. 	t2p->pdf_pages=3;
5234. 	written += t2p_write_pdf_header(t2p, output);
       ^
5235. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5236. 	t2p->pdf_catalog=t2p->pdf_xrefcount;

tools/tiff2pdf.c:3634:1: start of procedure t2p_write_pdf_header()
  3632. */
  3633. 
  3634. tsize_t t2p_write_pdf_header(T2P* t2p, TIFF* output){
        ^
  3635. 
  3636. 	tsize_t written=0;

tools/tiff2pdf.c:3636:2: 
  3634. tsize_t t2p_write_pdf_header(T2P* t2p, TIFF* output){
  3635. 
  3636. 	tsize_t written=0;
         ^
  3637. 	char buffer[16];
  3638. 	int buflen=0;

tools/tiff2pdf.c:3638:2: 
  3636. 	tsize_t written=0;
  3637. 	char buffer[16];
  3638. 	int buflen=0;
         ^
  3639. 	
  3640. 	buflen = snprintf(buffer, sizeof(buffer), "%%PDF-%u.%u ",

tools/tiff2pdf.c:3640:2: 
  3638. 	int buflen=0;
  3639. 	
  3640. 	buflen = snprintf(buffer, sizeof(buffer), "%%PDF-%u.%u ",
         ^
  3641. 			  t2p->pdf_majorversion&0xff,
  3642. 			  t2p->pdf_minorversion&0xff);

tools/tiff2pdf.c:3643:2: 
  3641. 			  t2p->pdf_majorversion&0xff,
  3642. 			  t2p->pdf_minorversion&0xff);
  3643. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen);
         ^
  3644. 	written += t2pWriteFile(output, (tdata_t)"\n%\342\343\317\323\n", 7);
  3645. 

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

tools/tiff2pdf.c:366:2: 
    364. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    365. {
    366. 	thandle_t client = TIFFClientdata(tif);
          ^
    367. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    368. 	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:367:2: 
    365. {
    366. 	thandle_t client = TIFFClientdata(tif);
    367. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    368. 	if (proc)
    369. 		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:368:6: Taking false branch
    366. 	thandle_t client = TIFFClientdata(tif);
    367. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    368. 	if (proc)
              ^
    369. 		return proc(client, data, size);
    370. 	return -1;

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

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

tools/tiff2pdf.c:3644:2: 
  3642. 			  t2p->pdf_minorversion&0xff);
  3643. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen);
  3644. 	written += t2pWriteFile(output, (tdata_t)"\n%\342\343\317\323\n", 7);
         ^
  3645. 
  3646. 	return(written);

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

tools/tiff2pdf.c:366:2: 
    364. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    365. {
    366. 	thandle_t client = TIFFClientdata(tif);
          ^
    367. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    368. 	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:367:2: 
    365. {
    366. 	thandle_t client = TIFFClientdata(tif);
    367. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    368. 	if (proc)
    369. 		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:368:6: Taking false branch
    366. 	thandle_t client = TIFFClientdata(tif);
    367. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    368. 	if (proc)
              ^
    369. 		return proc(client, data, size);
    370. 	return -1;

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

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

tools/tiff2pdf.c:3646:2: 
  3644. 	written += t2pWriteFile(output, (tdata_t)"\n%\342\343\317\323\n", 7);
  3645. 
  3646. 	return(written);
         ^
  3647. }
  3648. 

tools/tiff2pdf.c:3647:1: return from a call to t2p_write_pdf_header
  3645. 
  3646. 	return(written);
  3647. }
        ^
  3648. 
  3649. /*

tools/tiff2pdf.c:5235:2: 
5233. 	t2p->pdf_pages=3;
5234. 	written += t2p_write_pdf_header(t2p, output);
5235. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
       ^
5236. 	t2p->pdf_catalog=t2p->pdf_xrefcount;
5237. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);

tools/tiff2pdf.c:5236:2: 
5234. 	written += t2p_write_pdf_header(t2p, output);
5235. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5236. 	t2p->pdf_catalog=t2p->pdf_xrefcount;
       ^
5237. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5238. 	written += t2p_write_pdf_catalog(t2p, output);

tools/tiff2pdf.c:5237:2: 
5235. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5236. 	t2p->pdf_catalog=t2p->pdf_xrefcount;
5237. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
       ^
5238. 	written += t2p_write_pdf_catalog(t2p, output);
5239. 	written += t2p_write_pdf_obj_end(output);

tools/tiff2pdf.c:3653:1: start of procedure t2p_write_pdf_obj_start()
  3651. */
  3652. 
  3653. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
        ^
  3654. 
  3655. 	tsize_t written=0;

tools/tiff2pdf.c:3655:2: 
  3653. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
  3654. 
  3655. 	tsize_t written=0;
         ^
  3656. 	char buffer[32];
  3657. 	int buflen=0;

tools/tiff2pdf.c:3657:2: 
  3655. 	tsize_t written=0;
  3656. 	char buffer[32];
  3657. 	int buflen=0;
         ^
  3658. 
  3659. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);

tools/tiff2pdf.c:3659:2: 
  3657. 	int buflen=0;
  3658. 
  3659. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
         ^
  3660. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
  3661. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);

tools/tiff2pdf.c:3660:2: 
  3658. 
  3659. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
  3660. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
         ^
  3661. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
  3662. 

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

tools/tiff2pdf.c:366:2: 
    364. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    365. {
    366. 	thandle_t client = TIFFClientdata(tif);
          ^
    367. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    368. 	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:367:2: 
    365. {
    366. 	thandle_t client = TIFFClientdata(tif);
    367. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    368. 	if (proc)
    369. 		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:368:6: Taking false branch
    366. 	thandle_t client = TIFFClientdata(tif);
    367. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    368. 	if (proc)
              ^
    369. 		return proc(client, data, size);
    370. 	return -1;

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

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

tools/tiff2pdf.c:3661:2: 
  3659. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
  3660. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
  3661. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
         ^
  3662. 
  3663. 	return(written);

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

tools/tiff2pdf.c:366:2: 
    364. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    365. {
    366. 	thandle_t client = TIFFClientdata(tif);
          ^
    367. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    368. 	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:367:2: 
    365. {
    366. 	thandle_t client = TIFFClientdata(tif);
    367. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    368. 	if (proc)
    369. 		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:368:6: Taking false branch
    366. 	thandle_t client = TIFFClientdata(tif);
    367. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    368. 	if (proc)
              ^
    369. 		return proc(client, data, size);
    370. 	return -1;

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

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

tools/tiff2pdf.c:3663:2: 
  3661. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
  3662. 
  3663. 	return(written);
         ^
  3664. }
  3665. 

tools/tiff2pdf.c:3664:1: return from a call to t2p_write_pdf_obj_start
  3662. 
  3663. 	return(written);
  3664. }
        ^
  3665. 
  3666. /*

tools/tiff2pdf.c:5238:2: 
5236. 	t2p->pdf_catalog=t2p->pdf_xrefcount;
5237. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5238. 	written += t2p_write_pdf_catalog(t2p, output);
       ^
5239. 	written += t2p_write_pdf_obj_end(output);
5240. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;

tools/tiff2pdf.c:3939:1: start of procedure t2p_write_pdf_catalog()
  3937.  */
  3938. 
  3939. tsize_t t2p_write_pdf_catalog(T2P* t2p, TIFF* output)
        ^
  3940. {
  3941. 	tsize_t written = 0;

tools/tiff2pdf.c:3941:2: 
  3939. tsize_t t2p_write_pdf_catalog(T2P* t2p, TIFF* output)
  3940. {
  3941. 	tsize_t written = 0;
         ^
  3942. 	char buffer[32];
  3943. 	int buflen = 0;

tools/tiff2pdf.c:3943:2: 
  3941. 	tsize_t written = 0;
  3942. 	char buffer[32];
  3943. 	int buflen = 0;
         ^
  3944. 
  3945. 	written += t2pWriteFile(output, 

tools/tiff2pdf.c:3945:2: 
  3943. 	int buflen = 0;
  3944. 
  3945. 	written += t2pWriteFile(output, 
         ^
  3946. 		(tdata_t)"<< \n/Type /Catalog \n/Pages ", 
  3947. 		27);

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

tools/tiff2pdf.c:366:2: 
    364. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    365. {
    366. 	thandle_t client = TIFFClientdata(tif);
          ^
    367. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    368. 	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:367:2: 
    365. {
    366. 	thandle_t client = TIFFClientdata(tif);
    367. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    368. 	if (proc)
    369. 		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:368:6: Taking false branch
    366. 	thandle_t client = TIFFClientdata(tif);
    367. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    368. 	if (proc)
              ^
    369. 		return proc(client, data, size);
    370. 	return -1;

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

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

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

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

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

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

tools/tiff2pdf.c:366:2: 
    364. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    365. {
    366. 	thandle_t client = TIFFClientdata(tif);
          ^
    367. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    368. 	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:367:2: 
    365. {
    366. 	thandle_t client = TIFFClientdata(tif);
    367. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    368. 	if (proc)
    369. 		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:368:6: Taking false branch
    366. 	thandle_t client = TIFFClientdata(tif);
    367. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    368. 	if (proc)
              ^
    369. 		return proc(client, data, size);
    370. 	return -1;

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

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

tools/tiff2pdf.c:3951:2: 
  3949. 	written += t2pWriteFile(output, (tdata_t) buffer,
  3950. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));
  3951. 	written += t2pWriteFile(output, (tdata_t) " 0 R \n", 6);
         ^
  3952. 	if(t2p->pdf_fitwindow){
  3953. 		written += t2pWriteFile(output, 

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

tools/tiff2pdf.c:366:2: 
    364. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    365. {
    366. 	thandle_t client = TIFFClientdata(tif);
          ^
    367. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    368. 	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:367:2: 
    365. {
    366. 	thandle_t client = TIFFClientdata(tif);
    367. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    368. 	if (proc)
    369. 		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:368:6: Taking false branch
    366. 	thandle_t client = TIFFClientdata(tif);
    367. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    368. 	if (proc)
              ^
    369. 		return proc(client, data, size);
    370. 	return -1;

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

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

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

tools/tiff2pdf.c:3953:3: 
  3951. 	written += t2pWriteFile(output, (tdata_t) " 0 R \n", 6);
  3952. 	if(t2p->pdf_fitwindow){
  3953. 		written += t2pWriteFile(output, 
          ^
  3954. 			(tdata_t) "/ViewerPreferences <</FitWindow true>>\n", 
  3955. 			39);

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

tools/tiff2pdf.c:366:2: 
    364. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    365. {
    366. 	thandle_t client = TIFFClientdata(tif);
          ^
    367. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    368. 	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:367:2: 
    365. {
    366. 	thandle_t client = TIFFClientdata(tif);
    367. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    368. 	if (proc)
    369. 		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:368:6: Taking false branch
    366. 	thandle_t client = TIFFClientdata(tif);
    367. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    368. 	if (proc)
              ^
    369. 		return proc(client, data, size);
    370. 	return -1;

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

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

tools/tiff2pdf.c:3957:2: 
  3955. 			39);
  3956. 	}
  3957. 	written += t2pWriteFile(output, (tdata_t)">>\n", 3);
         ^
  3958. 
  3959. 	return(written);

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

tools/tiff2pdf.c:366:2: 
    364. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    365. {
    366. 	thandle_t client = TIFFClientdata(tif);
          ^
    367. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    368. 	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:367:2: 
    365. {
    366. 	thandle_t client = TIFFClientdata(tif);
    367. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    368. 	if (proc)
    369. 		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:368:6: Taking false branch
    366. 	thandle_t client = TIFFClientdata(tif);
    367. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    368. 	if (proc)
              ^
    369. 		return proc(client, data, size);
    370. 	return -1;

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

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

tools/tiff2pdf.c:3959:2: 
  3957. 	written += t2pWriteFile(output, (tdata_t)">>\n", 3);
  3958. 
  3959. 	return(written);
         ^
  3960. }
  3961. 

tools/tiff2pdf.c:3960:1: return from a call to t2p_write_pdf_catalog
  3958. 
  3959. 	return(written);
  3960. }
        ^
  3961. 
  3962. /*

tools/tiff2pdf.c:5239:2: 
5237. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5238. 	written += t2p_write_pdf_catalog(t2p, output);
5239. 	written += t2p_write_pdf_obj_end(output);
       ^
5240. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5241. 	t2p->pdf_info=t2p->pdf_xrefcount;

tools/tiff2pdf.c:3670:1: start of procedure t2p_write_pdf_obj_end()
  3668. */
  3669. 
  3670. tsize_t t2p_write_pdf_obj_end(TIFF* output){
        ^
  3671. 
  3672. 	tsize_t written=0;

tools/tiff2pdf.c:3672:2: 
  3670. tsize_t t2p_write_pdf_obj_end(TIFF* output){
  3671. 
  3672. 	tsize_t written=0;
         ^
  3673. 
  3674. 	written += t2pWriteFile(output, (tdata_t) "endobj\n", 7);

tools/tiff2pdf.c:3674:2: 
  3672. 	tsize_t written=0;
  3673. 
  3674. 	written += t2pWriteFile(output, (tdata_t) "endobj\n", 7);
         ^
  3675. 
  3676. 	return(written);

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

tools/tiff2pdf.c:366:2: 
    364. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    365. {
    366. 	thandle_t client = TIFFClientdata(tif);
          ^
    367. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    368. 	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:367:2: 
    365. {
    366. 	thandle_t client = TIFFClientdata(tif);
    367. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    368. 	if (proc)
    369. 		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:368:6: Taking false branch
    366. 	thandle_t client = TIFFClientdata(tif);
    367. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    368. 	if (proc)
              ^
    369. 		return proc(client, data, size);
    370. 	return -1;

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

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

tools/tiff2pdf.c:3676:2: 
  3674. 	written += t2pWriteFile(output, (tdata_t) "endobj\n", 7);
  3675. 
  3676. 	return(written);
         ^
  3677. }
  3678. 

tools/tiff2pdf.c:3677:1: return from a call to t2p_write_pdf_obj_end
  3675. 
  3676. 	return(written);
  3677. }
        ^
  3678. 
  3679. /*

tools/tiff2pdf.c:5240:2: 
5238. 	written += t2p_write_pdf_catalog(t2p, output);
5239. 	written += t2p_write_pdf_obj_end(output);
5240. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
       ^
5241. 	t2p->pdf_info=t2p->pdf_xrefcount;
5242. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);

tools/tiff2pdf.c:5241:2: 
5239. 	written += t2p_write_pdf_obj_end(output);
5240. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5241. 	t2p->pdf_info=t2p->pdf_xrefcount;
       ^
5242. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5243. 	written += t2p_write_pdf_info(t2p, input, output);

tools/tiff2pdf.c:5242:2: 
5240. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5241. 	t2p->pdf_info=t2p->pdf_xrefcount;
5242. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
       ^
5243. 	written += t2p_write_pdf_info(t2p, input, output);
5244. 	written += t2p_write_pdf_obj_end(output);

tools/tiff2pdf.c:3653:1: start of procedure t2p_write_pdf_obj_start()
  3651. */
  3652. 
  3653. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
        ^
  3654. 
  3655. 	tsize_t written=0;

tools/tiff2pdf.c:3655:2: 
  3653. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
  3654. 
  3655. 	tsize_t written=0;
         ^
  3656. 	char buffer[32];
  3657. 	int buflen=0;

tools/tiff2pdf.c:3657:2: 
  3655. 	tsize_t written=0;
  3656. 	char buffer[32];
  3657. 	int buflen=0;
         ^
  3658. 
  3659. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);

tools/tiff2pdf.c:3659:2: 
  3657. 	int buflen=0;
  3658. 
  3659. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
         ^
  3660. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
  3661. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);

tools/tiff2pdf.c:3660:2: 
  3658. 
  3659. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
  3660. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
         ^
  3661. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
  3662. 

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

tools/tiff2pdf.c:366:2: 
    364. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    365. {
    366. 	thandle_t client = TIFFClientdata(tif);
          ^
    367. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    368. 	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:367:2: 
    365. {
    366. 	thandle_t client = TIFFClientdata(tif);
    367. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    368. 	if (proc)
    369. 		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:368:6: Taking false branch
    366. 	thandle_t client = TIFFClientdata(tif);
    367. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    368. 	if (proc)
              ^
    369. 		return proc(client, data, size);
    370. 	return -1;

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

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

tools/tiff2pdf.c:3661:2: 
  3659. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
  3660. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
  3661. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
         ^
  3662. 
  3663. 	return(written);

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

tools/tiff2pdf.c:366:2: 
    364. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    365. {
    366. 	thandle_t client = TIFFClientdata(tif);
          ^
    367. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    368. 	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:367:2: 
    365. {
    366. 	thandle_t client = TIFFClientdata(tif);
    367. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    368. 	if (proc)
    369. 		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:368:6: Taking false branch
    366. 	thandle_t client = TIFFClientdata(tif);
    367. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    368. 	if (proc)
              ^
    369. 		return proc(client, data, size);
    370. 	return -1;

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

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

tools/tiff2pdf.c:3663:2: 
  3661. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
  3662. 
  3663. 	return(written);
         ^
  3664. }
  3665. 

tools/tiff2pdf.c:3664:1: return from a call to t2p_write_pdf_obj_start
  3662. 
  3663. 	return(written);
  3664. }
        ^
  3665. 
  3666. /*

tools/tiff2pdf.c:5243:2: Skipping t2p_write_pdf_info(): empty list of specs
5241. 	t2p->pdf_info=t2p->pdf_xrefcount;
5242. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5243. 	written += t2p_write_pdf_info(t2p, input, output);
       ^
5244. 	written += t2p_write_pdf_obj_end(output);
5245. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
