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

tools/tiff2pdf.c:5218:1: start of procedure t2p_write_pdf()
5216. */
5217. 
5218. tsize_t t2p_write_pdf(T2P* t2p, TIFF* input, TIFF* output){
      ^
5219. 
5220. 	tsize_t written=0;

tools/tiff2pdf.c:5220:2: 
5218. tsize_t t2p_write_pdf(T2P* t2p, TIFF* input, TIFF* output){
5219. 
5220. 	tsize_t written=0;
       ^
5221. 	ttile_t i2=0;
5222. 	tsize_t streamlen=0;

tools/tiff2pdf.c:5221:2: 
5219. 
5220. 	tsize_t written=0;
5221. 	ttile_t i2=0;
       ^
5222. 	tsize_t streamlen=0;
5223. 	uint16 i=0;

tools/tiff2pdf.c:5222:2: 
5220. 	tsize_t written=0;
5221. 	ttile_t i2=0;
5222. 	tsize_t streamlen=0;
       ^
5223. 	uint16 i=0;
5224. 

tools/tiff2pdf.c:5223:2: 
5221. 	ttile_t i2=0;
5222. 	tsize_t streamlen=0;
5223. 	uint16 i=0;
       ^
5224. 
5225. 	t2p_read_tiff_init(t2p, input);

tools/tiff2pdf.c:5225:2: Skipping t2p_read_tiff_init(): empty list of specs
5223. 	uint16 i=0;
5224. 
5225. 	t2p_read_tiff_init(t2p, input);
       ^
5226. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5227. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(t2p->pdf_xrefcount * sizeof(uint32) );

tools/tiff2pdf.c:5226:5: Taking false branch
5224. 
5225. 	t2p_read_tiff_init(t2p, input);
5226. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
          ^
5227. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(t2p->pdf_xrefcount * sizeof(uint32) );
5228. 	if(t2p->pdf_xrefoffsets==NULL){

tools/tiff2pdf.c:5227:2: 
5225. 	t2p_read_tiff_init(t2p, input);
5226. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5227. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(t2p->pdf_xrefcount * sizeof(uint32) );
       ^
5228. 	if(t2p->pdf_xrefoffsets==NULL){
5229. 		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:2: 
  258. _TIFFmalloc(tmsize_t s)
  259. {
  260. 	return (malloc((size_t) s));
        ^
  261. }
  262. 

libtiff/tif_unix.c:261:1: return from a call to _TIFFmalloc
  259. {
  260. 	return (malloc((size_t) s));
  261. }
       ^
  262. 
  263. void

tools/tiff2pdf.c:5228:5: Taking false branch
5226. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5227. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(t2p->pdf_xrefcount * sizeof(uint32) );
5228. 	if(t2p->pdf_xrefoffsets==NULL){
          ^
5229. 		TIFFError(
5230. 			TIFF2PDF_MODULE, 

tools/tiff2pdf.c:5236:2: 
5234. 		return(written);
5235. 	}
5236. 	t2p->pdf_xrefcount=0;
       ^
5237. 	t2p->pdf_catalog=1;
5238. 	t2p->pdf_info=2;

tools/tiff2pdf.c:5237:2: 
5235. 	}
5236. 	t2p->pdf_xrefcount=0;
5237. 	t2p->pdf_catalog=1;
       ^
5238. 	t2p->pdf_info=2;
5239. 	t2p->pdf_pages=3;

tools/tiff2pdf.c:5238:2: 
5236. 	t2p->pdf_xrefcount=0;
5237. 	t2p->pdf_catalog=1;
5238. 	t2p->pdf_info=2;
       ^
5239. 	t2p->pdf_pages=3;
5240. 	written += t2p_write_pdf_header(t2p, output);

tools/tiff2pdf.c:5239:2: 
5237. 	t2p->pdf_catalog=1;
5238. 	t2p->pdf_info=2;
5239. 	t2p->pdf_pages=3;
       ^
5240. 	written += t2p_write_pdf_header(t2p, output);
5241. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;

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

tools/tiff2pdf.c:3606:1: start of procedure t2p_write_pdf_header()
  3604. */
  3605. 
  3606. tsize_t t2p_write_pdf_header(T2P* t2p, TIFF* output){
        ^
  3607. 
  3608. 	tsize_t written=0;

tools/tiff2pdf.c:3608:2: 
  3606. tsize_t t2p_write_pdf_header(T2P* t2p, TIFF* output){
  3607. 
  3608. 	tsize_t written=0;
         ^
  3609. 	char buffer[16];
  3610. 	int buflen=0;

tools/tiff2pdf.c:3610:2: 
  3608. 	tsize_t written=0;
  3609. 	char buffer[16];
  3610. 	int buflen=0;
         ^
  3611. 	
  3612. 	buflen=sprintf(buffer, "%%PDF-%u.%u ", t2p->pdf_majorversion&0xff, t2p->pdf_minorversion&0xff);

tools/tiff2pdf.c:3612:2: 
  3610. 	int buflen=0;
  3611. 	
  3612. 	buflen=sprintf(buffer, "%%PDF-%u.%u ", t2p->pdf_majorversion&0xff, t2p->pdf_minorversion&0xff);
         ^
  3613. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen);
  3614. 	written += t2pWriteFile(output, (tdata_t)"\n%\342\343\317\323\n", 7);

tools/tiff2pdf.c:3613:2: 
  3611. 	
  3612. 	buflen=sprintf(buffer, "%%PDF-%u.%u ", t2p->pdf_majorversion&0xff, t2p->pdf_minorversion&0xff);
  3613. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen);
         ^
  3614. 	written += t2pWriteFile(output, (tdata_t)"\n%\342\343\317\323\n", 7);
  3615. 

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:3614:2: 
  3612. 	buflen=sprintf(buffer, "%%PDF-%u.%u ", t2p->pdf_majorversion&0xff, t2p->pdf_minorversion&0xff);
  3613. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen);
  3614. 	written += t2pWriteFile(output, (tdata_t)"\n%\342\343\317\323\n", 7);
         ^
  3615. 
  3616. 	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:3616:2: 
  3614. 	written += t2pWriteFile(output, (tdata_t)"\n%\342\343\317\323\n", 7);
  3615. 
  3616. 	return(written);
         ^
  3617. }
  3618. 

tools/tiff2pdf.c:3617:1: return from a call to t2p_write_pdf_header
  3615. 
  3616. 	return(written);
  3617. }
        ^
  3618. 
  3619. /*

tools/tiff2pdf.c:5241:2: 
5239. 	t2p->pdf_pages=3;
5240. 	written += t2p_write_pdf_header(t2p, output);
5241. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
       ^
5242. 	t2p->pdf_catalog=t2p->pdf_xrefcount;
5243. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);

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

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

tools/tiff2pdf.c:3623:1: start of procedure t2p_write_pdf_obj_start()
  3621. */
  3622. 
  3623. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
        ^
  3624. 
  3625. 	tsize_t written=0;

tools/tiff2pdf.c:3625:2: 
  3623. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
  3624. 
  3625. 	tsize_t written=0;
         ^
  3626. 	char buffer[16];
  3627. 	int buflen=0;

tools/tiff2pdf.c:3627:2: 
  3625. 	tsize_t written=0;
  3626. 	char buffer[16];
  3627. 	int buflen=0;
         ^
  3628. 
  3629. 	buflen=sprintf(buffer, "%lu", (unsigned long)number);

tools/tiff2pdf.c:3629:2: 
  3627. 	int buflen=0;
  3628. 
  3629. 	buflen=sprintf(buffer, "%lu", (unsigned long)number);
         ^
  3630. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
  3631. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);

tools/tiff2pdf.c:3630:2: 
  3628. 
  3629. 	buflen=sprintf(buffer, "%lu", (unsigned long)number);
  3630. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
         ^
  3631. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
  3632. 

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:3631:2: 
  3629. 	buflen=sprintf(buffer, "%lu", (unsigned long)number);
  3630. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
  3631. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
         ^
  3632. 
  3633. 	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:3633:2: 
  3631. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
  3632. 
  3633. 	return(written);
         ^
  3634. }
  3635. 

tools/tiff2pdf.c:3634:1: return from a call to t2p_write_pdf_obj_start
  3632. 
  3633. 	return(written);
  3634. }
        ^
  3635. 
  3636. /*

tools/tiff2pdf.c:5244:2: 
5242. 	t2p->pdf_catalog=t2p->pdf_xrefcount;
5243. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5244. 	written += t2p_write_pdf_catalog(t2p, output);
       ^
5245. 	written += t2p_write_pdf_obj_end(output);
5246. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;

tools/tiff2pdf.c:3909:1: start of procedure t2p_write_pdf_catalog()
  3907.  */
  3908. 
  3909. tsize_t t2p_write_pdf_catalog(T2P* t2p, TIFF* output)
        ^
  3910. {
  3911. 	tsize_t written = 0;

tools/tiff2pdf.c:3911:2: 
  3909. tsize_t t2p_write_pdf_catalog(T2P* t2p, TIFF* output)
  3910. {
  3911. 	tsize_t written = 0;
         ^
  3912. 	char buffer[16];
  3913. 	int buflen = 0;

tools/tiff2pdf.c:3913:2: 
  3911. 	tsize_t written = 0;
  3912. 	char buffer[16];
  3913. 	int buflen = 0;
         ^
  3914. 
  3915. 	written += t2pWriteFile(output, 

tools/tiff2pdf.c:3915:2: 
  3913. 	int buflen = 0;
  3914. 
  3915. 	written += t2pWriteFile(output, 
         ^
  3916. 		(tdata_t)"<< \n/Type /Catalog \n/Pages ", 
  3917. 		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:3918:2: 
  3916. 		(tdata_t)"<< \n/Type /Catalog \n/Pages ", 
  3917. 		27);
  3918. 	buflen = snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)t2p->pdf_pages);
         ^
  3919. 	written += t2pWriteFile(output, (tdata_t) buffer,
  3920. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));

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

tools/tiff2pdf.c:3919:2: 
  3917. 		27);
  3918. 	buflen = snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)t2p->pdf_pages);
  3919. 	written += t2pWriteFile(output, (tdata_t) buffer,
         ^
  3920. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));
  3921. 	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:3921:2: 
  3919. 	written += t2pWriteFile(output, (tdata_t) buffer,
  3920. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));
  3921. 	written += t2pWriteFile(output, (tdata_t) " 0 R \n", 6);
         ^
  3922. 	if(t2p->pdf_fitwindow){
  3923. 		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:3922:5: Taking true branch
  3920. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));
  3921. 	written += t2pWriteFile(output, (tdata_t) " 0 R \n", 6);
  3922. 	if(t2p->pdf_fitwindow){
            ^
  3923. 		written += t2pWriteFile(output, 
  3924. 			(tdata_t) "/ViewerPreferences <</FitWindow true>>\n", 

tools/tiff2pdf.c:3923:3: 
  3921. 	written += t2pWriteFile(output, (tdata_t) " 0 R \n", 6);
  3922. 	if(t2p->pdf_fitwindow){
  3923. 		written += t2pWriteFile(output, 
          ^
  3924. 			(tdata_t) "/ViewerPreferences <</FitWindow true>>\n", 
  3925. 			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:3927:2: 
  3925. 			39);
  3926. 	}
  3927. 	written += t2pWriteFile(output, (tdata_t)">>\n", 3);
         ^
  3928. 
  3929. 	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:3929:2: 
  3927. 	written += t2pWriteFile(output, (tdata_t)">>\n", 3);
  3928. 
  3929. 	return(written);
         ^
  3930. }
  3931. 

tools/tiff2pdf.c:3930:1: return from a call to t2p_write_pdf_catalog
  3928. 
  3929. 	return(written);
  3930. }
        ^
  3931. 
  3932. /*

tools/tiff2pdf.c:5245:2: 
5243. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5244. 	written += t2p_write_pdf_catalog(t2p, output);
5245. 	written += t2p_write_pdf_obj_end(output);
       ^
5246. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5247. 	t2p->pdf_info=t2p->pdf_xrefcount;

tools/tiff2pdf.c:3640:1: start of procedure t2p_write_pdf_obj_end()
  3638. */
  3639. 
  3640. tsize_t t2p_write_pdf_obj_end(TIFF* output){
        ^
  3641. 
  3642. 	tsize_t written=0;

tools/tiff2pdf.c:3642:2: 
  3640. tsize_t t2p_write_pdf_obj_end(TIFF* output){
  3641. 
  3642. 	tsize_t written=0;
         ^
  3643. 
  3644. 	written += t2pWriteFile(output, (tdata_t) "endobj\n", 7);

tools/tiff2pdf.c:3644:2: 
  3642. 	tsize_t written=0;
  3643. 
  3644. 	written += t2pWriteFile(output, (tdata_t) "endobj\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) "endobj\n", 7);
  3645. 
  3646. 	return(written);
         ^
  3647. }
  3648. 

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

tools/tiff2pdf.c:5246:2: 
5244. 	written += t2p_write_pdf_catalog(t2p, output);
5245. 	written += t2p_write_pdf_obj_end(output);
5246. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
       ^
5247. 	t2p->pdf_info=t2p->pdf_xrefcount;
5248. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);

tools/tiff2pdf.c:5247:2: 
5245. 	written += t2p_write_pdf_obj_end(output);
5246. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5247. 	t2p->pdf_info=t2p->pdf_xrefcount;
       ^
5248. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5249. 	written += t2p_write_pdf_info(t2p, input, output);

tools/tiff2pdf.c:5248:2: 
5246. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5247. 	t2p->pdf_info=t2p->pdf_xrefcount;
5248. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
       ^
5249. 	written += t2p_write_pdf_info(t2p, input, output);
5250. 	written += t2p_write_pdf_obj_end(output);

tools/tiff2pdf.c:3623:1: start of procedure t2p_write_pdf_obj_start()
  3621. */
  3622. 
  3623. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
        ^
  3624. 
  3625. 	tsize_t written=0;

tools/tiff2pdf.c:3625:2: 
  3623. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
  3624. 
  3625. 	tsize_t written=0;
         ^
  3626. 	char buffer[16];
  3627. 	int buflen=0;

tools/tiff2pdf.c:3627:2: 
  3625. 	tsize_t written=0;
  3626. 	char buffer[16];
  3627. 	int buflen=0;
         ^
  3628. 
  3629. 	buflen=sprintf(buffer, "%lu", (unsigned long)number);

tools/tiff2pdf.c:3629:2: 
  3627. 	int buflen=0;
  3628. 
  3629. 	buflen=sprintf(buffer, "%lu", (unsigned long)number);
         ^
  3630. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
  3631. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);

tools/tiff2pdf.c:3630:2: 
  3628. 
  3629. 	buflen=sprintf(buffer, "%lu", (unsigned long)number);
  3630. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
         ^
  3631. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
  3632. 

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:3631:2: 
  3629. 	buflen=sprintf(buffer, "%lu", (unsigned long)number);
  3630. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
  3631. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
         ^
  3632. 
  3633. 	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:3633:2: 
  3631. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
  3632. 
  3633. 	return(written);
         ^
  3634. }
  3635. 

tools/tiff2pdf.c:3634:1: return from a call to t2p_write_pdf_obj_start
  3632. 
  3633. 	return(written);
  3634. }
        ^
  3635. 
  3636. /*

tools/tiff2pdf.c:5249:2: Skipping t2p_write_pdf_info(): empty list of specs
5247. 	t2p->pdf_info=t2p->pdf_xrefcount;
5248. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5249. 	written += t2p_write_pdf_info(t2p, input, output);
       ^
5250. 	written += t2p_write_pdf_obj_end(output);
5251. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
