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

tools/tiff2pdf.c:5267:1: start of procedure t2p_write_pdf()
5265. */
5266. 
5267. tsize_t t2p_write_pdf(T2P* t2p, TIFF* input, TIFF* output){
      ^
5268. 
5269. 	tsize_t written=0;

tools/tiff2pdf.c:5269:2: 
5267. tsize_t t2p_write_pdf(T2P* t2p, TIFF* input, TIFF* output){
5268. 
5269. 	tsize_t written=0;
       ^
5270. 	ttile_t i2=0;
5271. 	tsize_t streamlen=0;

tools/tiff2pdf.c:5270:2: 
5268. 
5269. 	tsize_t written=0;
5270. 	ttile_t i2=0;
       ^
5271. 	tsize_t streamlen=0;
5272. 	uint16 i=0;

tools/tiff2pdf.c:5271:2: 
5269. 	tsize_t written=0;
5270. 	ttile_t i2=0;
5271. 	tsize_t streamlen=0;
       ^
5272. 	uint16 i=0;
5273. 

tools/tiff2pdf.c:5272:2: 
5270. 	ttile_t i2=0;
5271. 	tsize_t streamlen=0;
5272. 	uint16 i=0;
       ^
5273. 
5274. 	t2p_read_tiff_init(t2p, input);

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

tools/tiff2pdf.c:5275:5: Taking false branch
5273. 
5274. 	t2p_read_tiff_init(t2p, input);
5275. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
          ^
5276. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
5277. 	if(t2p->pdf_xrefoffsets==NULL){

tools/tiff2pdf.c:5276:46: Condition is true
5274. 	t2p_read_tiff_init(t2p, input);
5275. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5276. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
                                                   ^
5277. 	if(t2p->pdf_xrefoffsets==NULL){
5278. 		TIFFError(

tools/tiff2pdf.c:5276:46: Condition is true
5274. 	t2p_read_tiff_init(t2p, input);
5275. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5276. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
                                                   ^
5277. 	if(t2p->pdf_xrefoffsets==NULL){
5278. 		TIFFError(

tools/tiff2pdf.c:5276:2: 
5274. 	t2p_read_tiff_init(t2p, input);
5275. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5276. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
       ^
5277. 	if(t2p->pdf_xrefoffsets==NULL){
5278. 		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:5277:5: Taking false branch
5275. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5276. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
5277. 	if(t2p->pdf_xrefoffsets==NULL){
          ^
5278. 		TIFFError(
5279. 			TIFF2PDF_MODULE, 

tools/tiff2pdf.c:5285:2: 
5283. 		return(written);
5284. 	}
5285. 	t2p->pdf_xrefcount=0;
       ^
5286. 	t2p->pdf_catalog=1;
5287. 	t2p->pdf_info=2;

tools/tiff2pdf.c:5286:2: 
5284. 	}
5285. 	t2p->pdf_xrefcount=0;
5286. 	t2p->pdf_catalog=1;
       ^
5287. 	t2p->pdf_info=2;
5288. 	t2p->pdf_pages=3;

tools/tiff2pdf.c:5287:2: 
5285. 	t2p->pdf_xrefcount=0;
5286. 	t2p->pdf_catalog=1;
5287. 	t2p->pdf_info=2;
       ^
5288. 	t2p->pdf_pages=3;
5289. 	written += t2p_write_pdf_header(t2p, output);

tools/tiff2pdf.c:5288:2: 
5286. 	t2p->pdf_catalog=1;
5287. 	t2p->pdf_info=2;
5288. 	t2p->pdf_pages=3;
       ^
5289. 	written += t2p_write_pdf_header(t2p, output);
5290. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;

tools/tiff2pdf.c:5289:2: 
5287. 	t2p->pdf_info=2;
5288. 	t2p->pdf_pages=3;
5289. 	written += t2p_write_pdf_header(t2p, output);
       ^
5290. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5291. 	t2p->pdf_catalog=t2p->pdf_xrefcount;

tools/tiff2pdf.c:3689:1: start of procedure t2p_write_pdf_header()
  3687. */
  3688. 
  3689. tsize_t t2p_write_pdf_header(T2P* t2p, TIFF* output){
        ^
  3690. 
  3691. 	tsize_t written=0;

tools/tiff2pdf.c:3691:2: 
  3689. tsize_t t2p_write_pdf_header(T2P* t2p, TIFF* output){
  3690. 
  3691. 	tsize_t written=0;
         ^
  3692. 	char buffer[16];
  3693. 	int buflen=0;

tools/tiff2pdf.c:3693:2: 
  3691. 	tsize_t written=0;
  3692. 	char buffer[16];
  3693. 	int buflen=0;
         ^
  3694. 	
  3695. 	buflen = snprintf(buffer, sizeof(buffer), "%%PDF-%u.%u ",

tools/tiff2pdf.c:3695:2: 
  3693. 	int buflen=0;
  3694. 	
  3695. 	buflen = snprintf(buffer, sizeof(buffer), "%%PDF-%u.%u ",
         ^
  3696. 			  t2p->pdf_majorversion&0xff,
  3697. 			  t2p->pdf_minorversion&0xff);

tools/tiff2pdf.c:3698:2: 
  3696. 			  t2p->pdf_majorversion&0xff,
  3697. 			  t2p->pdf_minorversion&0xff);
  3698. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen);
         ^
  3699. 	written += t2pWriteFile(output, (tdata_t)"\n%\342\343\317\323\n", 7);
  3700. 

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:3699:2: 
  3697. 			  t2p->pdf_minorversion&0xff);
  3698. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen);
  3699. 	written += t2pWriteFile(output, (tdata_t)"\n%\342\343\317\323\n", 7);
         ^
  3700. 
  3701. 	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:3701:2: 
  3699. 	written += t2pWriteFile(output, (tdata_t)"\n%\342\343\317\323\n", 7);
  3700. 
  3701. 	return(written);
         ^
  3702. }
  3703. 

tools/tiff2pdf.c:3702:1: return from a call to t2p_write_pdf_header
  3700. 
  3701. 	return(written);
  3702. }
        ^
  3703. 
  3704. /*

tools/tiff2pdf.c:5290:2: 
5288. 	t2p->pdf_pages=3;
5289. 	written += t2p_write_pdf_header(t2p, output);
5290. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
       ^
5291. 	t2p->pdf_catalog=t2p->pdf_xrefcount;
5292. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);

tools/tiff2pdf.c:5291:2: 
5289. 	written += t2p_write_pdf_header(t2p, output);
5290. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5291. 	t2p->pdf_catalog=t2p->pdf_xrefcount;
       ^
5292. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5293. 	written += t2p_write_pdf_catalog(t2p, output);

tools/tiff2pdf.c:5292:2: 
5290. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5291. 	t2p->pdf_catalog=t2p->pdf_xrefcount;
5292. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
       ^
5293. 	written += t2p_write_pdf_catalog(t2p, output);
5294. 	written += t2p_write_pdf_obj_end(output);

tools/tiff2pdf.c:3708:1: start of procedure t2p_write_pdf_obj_start()
  3706. */
  3707. 
  3708. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
        ^
  3709. 
  3710. 	tsize_t written=0;

tools/tiff2pdf.c:3710:2: 
  3708. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
  3709. 
  3710. 	tsize_t written=0;
         ^
  3711. 	char buffer[32];
  3712. 	int buflen=0;

tools/tiff2pdf.c:3712:2: 
  3710. 	tsize_t written=0;
  3711. 	char buffer[32];
  3712. 	int buflen=0;
         ^
  3713. 
  3714. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);

tools/tiff2pdf.c:3714:2: 
  3712. 	int buflen=0;
  3713. 
  3714. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
         ^
  3715. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
  3716. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);

tools/tiff2pdf.c:3715:2: 
  3713. 
  3714. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
  3715. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
         ^
  3716. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
  3717. 

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:3716:2: 
  3714. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
  3715. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
  3716. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
         ^
  3717. 
  3718. 	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:3718:2: 
  3716. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
  3717. 
  3718. 	return(written);
         ^
  3719. }
  3720. 

tools/tiff2pdf.c:3719:1: return from a call to t2p_write_pdf_obj_start
  3717. 
  3718. 	return(written);
  3719. }
        ^
  3720. 
  3721. /*

tools/tiff2pdf.c:5293:2: 
5291. 	t2p->pdf_catalog=t2p->pdf_xrefcount;
5292. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5293. 	written += t2p_write_pdf_catalog(t2p, output);
       ^
5294. 	written += t2p_write_pdf_obj_end(output);
5295. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;

tools/tiff2pdf.c:3994:1: start of procedure t2p_write_pdf_catalog()
  3992.  */
  3993. 
  3994. tsize_t t2p_write_pdf_catalog(T2P* t2p, TIFF* output)
        ^
  3995. {
  3996. 	tsize_t written = 0;

tools/tiff2pdf.c:3996:2: 
  3994. tsize_t t2p_write_pdf_catalog(T2P* t2p, TIFF* output)
  3995. {
  3996. 	tsize_t written = 0;
         ^
  3997. 	char buffer[32];
  3998. 	int buflen = 0;

tools/tiff2pdf.c:3998:2: 
  3996. 	tsize_t written = 0;
  3997. 	char buffer[32];
  3998. 	int buflen = 0;
         ^
  3999. 
  4000. 	written += t2pWriteFile(output, 

tools/tiff2pdf.c:4000:2: 
  3998. 	int buflen = 0;
  3999. 
  4000. 	written += t2pWriteFile(output, 
         ^
  4001. 		(tdata_t)"<< \n/Type /Catalog \n/Pages ", 
  4002. 		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:4003:2: 
  4001. 		(tdata_t)"<< \n/Type /Catalog \n/Pages ", 
  4002. 		27);
  4003. 	buflen = snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)t2p->pdf_pages);
         ^
  4004. 	written += t2pWriteFile(output, (tdata_t) buffer,
  4005. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));

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

tools/tiff2pdf.c:4004:2: 
  4002. 		27);
  4003. 	buflen = snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)t2p->pdf_pages);
  4004. 	written += t2pWriteFile(output, (tdata_t) buffer,
         ^
  4005. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));
  4006. 	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:4006:2: 
  4004. 	written += t2pWriteFile(output, (tdata_t) buffer,
  4005. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));
  4006. 	written += t2pWriteFile(output, (tdata_t) " 0 R \n", 6);
         ^
  4007. 	if(t2p->pdf_fitwindow){
  4008. 		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:4007:5: Taking true branch
  4005. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));
  4006. 	written += t2pWriteFile(output, (tdata_t) " 0 R \n", 6);
  4007. 	if(t2p->pdf_fitwindow){
            ^
  4008. 		written += t2pWriteFile(output, 
  4009. 			(tdata_t) "/ViewerPreferences <</FitWindow true>>\n", 

tools/tiff2pdf.c:4008:3: 
  4006. 	written += t2pWriteFile(output, (tdata_t) " 0 R \n", 6);
  4007. 	if(t2p->pdf_fitwindow){
  4008. 		written += t2pWriteFile(output, 
          ^
  4009. 			(tdata_t) "/ViewerPreferences <</FitWindow true>>\n", 
  4010. 			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:4012:2: 
  4010. 			39);
  4011. 	}
  4012. 	written += t2pWriteFile(output, (tdata_t)">>\n", 3);
         ^
  4013. 
  4014. 	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:4014:2: 
  4012. 	written += t2pWriteFile(output, (tdata_t)">>\n", 3);
  4013. 
  4014. 	return(written);
         ^
  4015. }
  4016. 

tools/tiff2pdf.c:4015:1: return from a call to t2p_write_pdf_catalog
  4013. 
  4014. 	return(written);
  4015. }
        ^
  4016. 
  4017. /*

tools/tiff2pdf.c:5294:2: 
5292. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5293. 	written += t2p_write_pdf_catalog(t2p, output);
5294. 	written += t2p_write_pdf_obj_end(output);
       ^
5295. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5296. 	t2p->pdf_info=t2p->pdf_xrefcount;

tools/tiff2pdf.c:3725:1: start of procedure t2p_write_pdf_obj_end()
  3723. */
  3724. 
  3725. tsize_t t2p_write_pdf_obj_end(TIFF* output){
        ^
  3726. 
  3727. 	tsize_t written=0;

tools/tiff2pdf.c:3727:2: 
  3725. tsize_t t2p_write_pdf_obj_end(TIFF* output){
  3726. 
  3727. 	tsize_t written=0;
         ^
  3728. 
  3729. 	written += t2pWriteFile(output, (tdata_t) "endobj\n", 7);

tools/tiff2pdf.c:3729:2: 
  3727. 	tsize_t written=0;
  3728. 
  3729. 	written += t2pWriteFile(output, (tdata_t) "endobj\n", 7);
         ^
  3730. 
  3731. 	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:3731:2: 
  3729. 	written += t2pWriteFile(output, (tdata_t) "endobj\n", 7);
  3730. 
  3731. 	return(written);
         ^
  3732. }
  3733. 

tools/tiff2pdf.c:3732:1: return from a call to t2p_write_pdf_obj_end
  3730. 
  3731. 	return(written);
  3732. }
        ^
  3733. 
  3734. /*

tools/tiff2pdf.c:5295:2: 
5293. 	written += t2p_write_pdf_catalog(t2p, output);
5294. 	written += t2p_write_pdf_obj_end(output);
5295. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
       ^
5296. 	t2p->pdf_info=t2p->pdf_xrefcount;
5297. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);

tools/tiff2pdf.c:5296:2: 
5294. 	written += t2p_write_pdf_obj_end(output);
5295. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5296. 	t2p->pdf_info=t2p->pdf_xrefcount;
       ^
5297. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5298. 	written += t2p_write_pdf_info(t2p, input, output);

tools/tiff2pdf.c:5297:2: 
5295. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5296. 	t2p->pdf_info=t2p->pdf_xrefcount;
5297. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
       ^
5298. 	written += t2p_write_pdf_info(t2p, input, output);
5299. 	written += t2p_write_pdf_obj_end(output);

tools/tiff2pdf.c:3708:1: start of procedure t2p_write_pdf_obj_start()
  3706. */
  3707. 
  3708. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
        ^
  3709. 
  3710. 	tsize_t written=0;

tools/tiff2pdf.c:3710:2: 
  3708. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
  3709. 
  3710. 	tsize_t written=0;
         ^
  3711. 	char buffer[32];
  3712. 	int buflen=0;

tools/tiff2pdf.c:3712:2: 
  3710. 	tsize_t written=0;
  3711. 	char buffer[32];
  3712. 	int buflen=0;
         ^
  3713. 
  3714. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);

tools/tiff2pdf.c:3714:2: 
  3712. 	int buflen=0;
  3713. 
  3714. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
         ^
  3715. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
  3716. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);

tools/tiff2pdf.c:3715:2: 
  3713. 
  3714. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
  3715. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
         ^
  3716. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
  3717. 

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:3716:2: 
  3714. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
  3715. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
  3716. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
         ^
  3717. 
  3718. 	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:3718:2: 
  3716. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
  3717. 
  3718. 	return(written);
         ^
  3719. }
  3720. 

tools/tiff2pdf.c:3719:1: return from a call to t2p_write_pdf_obj_start
  3717. 
  3718. 	return(written);
  3719. }
        ^
  3720. 
  3721. /*

tools/tiff2pdf.c:5298:2: Skipping t2p_write_pdf_info(): empty list of specs
5296. 	t2p->pdf_info=t2p->pdf_xrefcount;
5297. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5298. 	written += t2p_write_pdf_info(t2p, input, output);
       ^
5299. 	written += t2p_write_pdf_obj_end(output);
5300. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
