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

tools/tiff2pdf.c:5137:1: start of procedure t2p_write_pdf()
5135. */
5136. 
5137. tsize_t t2p_write_pdf(T2P* t2p, TIFF* input, TIFF* output){
      ^
5138. 
5139. 	tsize_t written=0;

tools/tiff2pdf.c:5139:2: 
5137. tsize_t t2p_write_pdf(T2P* t2p, TIFF* input, TIFF* output){
5138. 
5139. 	tsize_t written=0;
       ^
5140. 	ttile_t i2=0;
5141. 	tsize_t streamlen=0;

tools/tiff2pdf.c:5140:2: 
5138. 
5139. 	tsize_t written=0;
5140. 	ttile_t i2=0;
       ^
5141. 	tsize_t streamlen=0;
5142. 	uint16 i=0;

tools/tiff2pdf.c:5141:2: 
5139. 	tsize_t written=0;
5140. 	ttile_t i2=0;
5141. 	tsize_t streamlen=0;
       ^
5142. 	uint16 i=0;
5143. 

tools/tiff2pdf.c:5142:2: 
5140. 	ttile_t i2=0;
5141. 	tsize_t streamlen=0;
5142. 	uint16 i=0;
       ^
5143. 
5144. 	t2p_read_tiff_init(t2p, input);

tools/tiff2pdf.c:5144:2: Skipping t2p_read_tiff_init(): empty list of specs
5142. 	uint16 i=0;
5143. 
5144. 	t2p_read_tiff_init(t2p, input);
       ^
5145. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5146. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(t2p->pdf_xrefcount * sizeof(uint32) );

tools/tiff2pdf.c:5145:5: Taking false branch
5143. 
5144. 	t2p_read_tiff_init(t2p, input);
5145. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
          ^
5146. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(t2p->pdf_xrefcount * sizeof(uint32) );
5147. 	if(t2p->pdf_xrefoffsets==NULL){

tools/tiff2pdf.c:5146:2: 
5144. 	t2p_read_tiff_init(t2p, input);
5145. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5146. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(t2p->pdf_xrefcount * sizeof(uint32) );
       ^
5147. 	if(t2p->pdf_xrefoffsets==NULL){
5148. 		TIFFError(

libtiff/tif_unix.c:253:1: start of procedure _TIFFmalloc()
  251. #endif
  252. 
  253. void*
       ^
  254. _TIFFmalloc(tmsize_t s)
  255. {

libtiff/tif_unix.c:256:2: 
  254. _TIFFmalloc(tmsize_t s)
  255. {
  256. 	return (malloc((size_t) s));
        ^
  257. }
  258. 

libtiff/tif_unix.c:257:1: return from a call to _TIFFmalloc
  255. {
  256. 	return (malloc((size_t) s));
  257. }
       ^
  258. 
  259. void

tools/tiff2pdf.c:5147:5: Taking false branch
5145. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5146. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(t2p->pdf_xrefcount * sizeof(uint32) );
5147. 	if(t2p->pdf_xrefoffsets==NULL){
          ^
5148. 		TIFFError(
5149. 			TIFF2PDF_MODULE, 

tools/tiff2pdf.c:5154:2: 
5152. 		return(written);
5153. 	}
5154. 	t2p->pdf_xrefcount=0;
       ^
5155. 	t2p->pdf_catalog=1;
5156. 	t2p->pdf_info=2;

tools/tiff2pdf.c:5155:2: 
5153. 	}
5154. 	t2p->pdf_xrefcount=0;
5155. 	t2p->pdf_catalog=1;
       ^
5156. 	t2p->pdf_info=2;
5157. 	t2p->pdf_pages=3;

tools/tiff2pdf.c:5156:2: 
5154. 	t2p->pdf_xrefcount=0;
5155. 	t2p->pdf_catalog=1;
5156. 	t2p->pdf_info=2;
       ^
5157. 	t2p->pdf_pages=3;
5158. 	written += t2p_write_pdf_header(t2p, output);

tools/tiff2pdf.c:5157:2: 
5155. 	t2p->pdf_catalog=1;
5156. 	t2p->pdf_info=2;
5157. 	t2p->pdf_pages=3;
       ^
5158. 	written += t2p_write_pdf_header(t2p, output);
5159. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;

tools/tiff2pdf.c:5158:2: 
5156. 	t2p->pdf_info=2;
5157. 	t2p->pdf_pages=3;
5158. 	written += t2p_write_pdf_header(t2p, output);
       ^
5159. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5160. 	t2p->pdf_catalog=t2p->pdf_xrefcount;

tools/tiff2pdf.c:3525:1: start of procedure t2p_write_pdf_header()
  3523. */
  3524. 
  3525. tsize_t t2p_write_pdf_header(T2P* t2p, TIFF* output){
        ^
  3526. 
  3527. 	tsize_t written=0;

tools/tiff2pdf.c:3527:2: 
  3525. tsize_t t2p_write_pdf_header(T2P* t2p, TIFF* output){
  3526. 
  3527. 	tsize_t written=0;
         ^
  3528. 	char buffer[16];
  3529. 	int buflen=0;

tools/tiff2pdf.c:3529:2: 
  3527. 	tsize_t written=0;
  3528. 	char buffer[16];
  3529. 	int buflen=0;
         ^
  3530. 	
  3531. 	buflen=sprintf(buffer, "%%PDF-%u.%u ", t2p->pdf_majorversion&0xff, t2p->pdf_minorversion&0xff);

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

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

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:3533:2: 
  3531. 	buflen=sprintf(buffer, "%%PDF-%u.%u ", t2p->pdf_majorversion&0xff, t2p->pdf_minorversion&0xff);
  3532. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen);
  3533. 	written += t2pWriteFile(output, (tdata_t)"\n%\342\343\317\323\n", 7);
         ^
  3534. 
  3535. 	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:3535:2: 
  3533. 	written += t2pWriteFile(output, (tdata_t)"\n%\342\343\317\323\n", 7);
  3534. 
  3535. 	return(written);
         ^
  3536. }
  3537. 

tools/tiff2pdf.c:3536:1: return from a call to t2p_write_pdf_header
  3534. 
  3535. 	return(written);
  3536. }
        ^
  3537. 
  3538. /*

tools/tiff2pdf.c:5159:2: 
5157. 	t2p->pdf_pages=3;
5158. 	written += t2p_write_pdf_header(t2p, output);
5159. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
       ^
5160. 	t2p->pdf_catalog=t2p->pdf_xrefcount;
5161. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);

tools/tiff2pdf.c:5160:2: 
5158. 	written += t2p_write_pdf_header(t2p, output);
5159. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5160. 	t2p->pdf_catalog=t2p->pdf_xrefcount;
       ^
5161. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5162. 	written += t2p_write_pdf_catalog(t2p, output);

tools/tiff2pdf.c:5161:2: 
5159. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5160. 	t2p->pdf_catalog=t2p->pdf_xrefcount;
5161. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
       ^
5162. 	written += t2p_write_pdf_catalog(t2p, output);
5163. 	written += t2p_write_pdf_obj_end(output);

tools/tiff2pdf.c:3542:1: start of procedure t2p_write_pdf_obj_start()
  3540. */
  3541. 
  3542. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
        ^
  3543. 
  3544. 	tsize_t written=0;

tools/tiff2pdf.c:3544:2: 
  3542. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
  3543. 
  3544. 	tsize_t written=0;
         ^
  3545. 	char buffer[16];
  3546. 	int buflen=0;

tools/tiff2pdf.c:3546:2: 
  3544. 	tsize_t written=0;
  3545. 	char buffer[16];
  3546. 	int buflen=0;
         ^
  3547. 
  3548. 	buflen=sprintf(buffer, "%lu", (unsigned long)number);

tools/tiff2pdf.c:3548:2: 
  3546. 	int buflen=0;
  3547. 
  3548. 	buflen=sprintf(buffer, "%lu", (unsigned long)number);
         ^
  3549. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
  3550. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);

tools/tiff2pdf.c:3549:2: 
  3547. 
  3548. 	buflen=sprintf(buffer, "%lu", (unsigned long)number);
  3549. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
         ^
  3550. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
  3551. 

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:3550:2: 
  3548. 	buflen=sprintf(buffer, "%lu", (unsigned long)number);
  3549. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
  3550. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
         ^
  3551. 
  3552. 	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:3552:2: 
  3550. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
  3551. 
  3552. 	return(written);
         ^
  3553. }
  3554. 

tools/tiff2pdf.c:3553:1: return from a call to t2p_write_pdf_obj_start
  3551. 
  3552. 	return(written);
  3553. }
        ^
  3554. 
  3555. /*

tools/tiff2pdf.c:5162:2: 
5160. 	t2p->pdf_catalog=t2p->pdf_xrefcount;
5161. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5162. 	written += t2p_write_pdf_catalog(t2p, output);
       ^
5163. 	written += t2p_write_pdf_obj_end(output);
5164. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;

tools/tiff2pdf.c:3828:1: start of procedure t2p_write_pdf_catalog()
  3826.  */
  3827. 
  3828. tsize_t t2p_write_pdf_catalog(T2P* t2p, TIFF* output)
        ^
  3829. {
  3830. 	tsize_t written = 0;

tools/tiff2pdf.c:3830:2: 
  3828. tsize_t t2p_write_pdf_catalog(T2P* t2p, TIFF* output)
  3829. {
  3830. 	tsize_t written = 0;
         ^
  3831. 	char buffer[16];
  3832. 	int buflen = 0;

tools/tiff2pdf.c:3832:2: 
  3830. 	tsize_t written = 0;
  3831. 	char buffer[16];
  3832. 	int buflen = 0;
         ^
  3833. 
  3834. 	written += t2pWriteFile(output, 

tools/tiff2pdf.c:3834:2: 
  3832. 	int buflen = 0;
  3833. 
  3834. 	written += t2pWriteFile(output, 
         ^
  3835. 		(tdata_t)"<< \n/Type /Catalog \n/Pages ", 
  3836. 		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:3837:2: 
  3835. 		(tdata_t)"<< \n/Type /Catalog \n/Pages ", 
  3836. 		27);
  3837. 	buflen = snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)t2p->pdf_pages);
         ^
  3838. 	written += t2pWriteFile(output, (tdata_t) buffer,
  3839. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));

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

tools/tiff2pdf.c:3838:2: 
  3836. 		27);
  3837. 	buflen = snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)t2p->pdf_pages);
  3838. 	written += t2pWriteFile(output, (tdata_t) buffer,
         ^
  3839. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));
  3840. 	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:3840:2: 
  3838. 	written += t2pWriteFile(output, (tdata_t) buffer,
  3839. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));
  3840. 	written += t2pWriteFile(output, (tdata_t) " 0 R \n", 6);
         ^
  3841. 	if(t2p->pdf_fitwindow){
  3842. 		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:3841:5: Taking true branch
  3839. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));
  3840. 	written += t2pWriteFile(output, (tdata_t) " 0 R \n", 6);
  3841. 	if(t2p->pdf_fitwindow){
            ^
  3842. 		written += t2pWriteFile(output, 
  3843. 			(tdata_t) "/ViewerPreferences <</FitWindow true>>\n", 

tools/tiff2pdf.c:3842:3: 
  3840. 	written += t2pWriteFile(output, (tdata_t) " 0 R \n", 6);
  3841. 	if(t2p->pdf_fitwindow){
  3842. 		written += t2pWriteFile(output, 
          ^
  3843. 			(tdata_t) "/ViewerPreferences <</FitWindow true>>\n", 
  3844. 			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:3846:2: 
  3844. 			39);
  3845. 	}
  3846. 	written += t2pWriteFile(output, (tdata_t)">>\n", 3);
         ^
  3847. 
  3848. 	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:3848:2: 
  3846. 	written += t2pWriteFile(output, (tdata_t)">>\n", 3);
  3847. 
  3848. 	return(written);
         ^
  3849. }
  3850. 

tools/tiff2pdf.c:3849:1: return from a call to t2p_write_pdf_catalog
  3847. 
  3848. 	return(written);
  3849. }
        ^
  3850. 
  3851. /*

tools/tiff2pdf.c:5163:2: 
5161. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5162. 	written += t2p_write_pdf_catalog(t2p, output);
5163. 	written += t2p_write_pdf_obj_end(output);
       ^
5164. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5165. 	t2p->pdf_info=t2p->pdf_xrefcount;

tools/tiff2pdf.c:3559:1: start of procedure t2p_write_pdf_obj_end()
  3557. */
  3558. 
  3559. tsize_t t2p_write_pdf_obj_end(TIFF* output){
        ^
  3560. 
  3561. 	tsize_t written=0;

tools/tiff2pdf.c:3561:2: 
  3559. tsize_t t2p_write_pdf_obj_end(TIFF* output){
  3560. 
  3561. 	tsize_t written=0;
         ^
  3562. 
  3563. 	written += t2pWriteFile(output, (tdata_t) "endobj\n", 7);

tools/tiff2pdf.c:3563:2: 
  3561. 	tsize_t written=0;
  3562. 
  3563. 	written += t2pWriteFile(output, (tdata_t) "endobj\n", 7);
         ^
  3564. 
  3565. 	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:3565:2: 
  3563. 	written += t2pWriteFile(output, (tdata_t) "endobj\n", 7);
  3564. 
  3565. 	return(written);
         ^
  3566. }
  3567. 

tools/tiff2pdf.c:3566:1: return from a call to t2p_write_pdf_obj_end
  3564. 
  3565. 	return(written);
  3566. }
        ^
  3567. 
  3568. /*

tools/tiff2pdf.c:5164:2: 
5162. 	written += t2p_write_pdf_catalog(t2p, output);
5163. 	written += t2p_write_pdf_obj_end(output);
5164. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
       ^
5165. 	t2p->pdf_info=t2p->pdf_xrefcount;
5166. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);

tools/tiff2pdf.c:5165:2: 
5163. 	written += t2p_write_pdf_obj_end(output);
5164. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5165. 	t2p->pdf_info=t2p->pdf_xrefcount;
       ^
5166. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5167. 	written += t2p_write_pdf_info(t2p, input, output);

tools/tiff2pdf.c:5166:2: 
5164. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5165. 	t2p->pdf_info=t2p->pdf_xrefcount;
5166. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
       ^
5167. 	written += t2p_write_pdf_info(t2p, input, output);
5168. 	written += t2p_write_pdf_obj_end(output);

tools/tiff2pdf.c:3542:1: start of procedure t2p_write_pdf_obj_start()
  3540. */
  3541. 
  3542. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
        ^
  3543. 
  3544. 	tsize_t written=0;

tools/tiff2pdf.c:3544:2: 
  3542. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
  3543. 
  3544. 	tsize_t written=0;
         ^
  3545. 	char buffer[16];
  3546. 	int buflen=0;

tools/tiff2pdf.c:3546:2: 
  3544. 	tsize_t written=0;
  3545. 	char buffer[16];
  3546. 	int buflen=0;
         ^
  3547. 
  3548. 	buflen=sprintf(buffer, "%lu", (unsigned long)number);

tools/tiff2pdf.c:3548:2: 
  3546. 	int buflen=0;
  3547. 
  3548. 	buflen=sprintf(buffer, "%lu", (unsigned long)number);
         ^
  3549. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
  3550. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);

tools/tiff2pdf.c:3549:2: 
  3547. 
  3548. 	buflen=sprintf(buffer, "%lu", (unsigned long)number);
  3549. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
         ^
  3550. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
  3551. 

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:3550:2: 
  3548. 	buflen=sprintf(buffer, "%lu", (unsigned long)number);
  3549. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
  3550. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
         ^
  3551. 
  3552. 	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:3552:2: 
  3550. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
  3551. 
  3552. 	return(written);
         ^
  3553. }
  3554. 

tools/tiff2pdf.c:3553:1: return from a call to t2p_write_pdf_obj_start
  3551. 
  3552. 	return(written);
  3553. }
        ^
  3554. 
  3555. /*

tools/tiff2pdf.c:5167:2: Skipping t2p_write_pdf_info(): empty list of specs
5165. 	t2p->pdf_info=t2p->pdf_xrefcount;
5166. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5167. 	written += t2p_write_pdf_info(t2p, input, output);
       ^
5168. 	written += t2p_write_pdf_obj_end(output);
5169. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
