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

tools/tiff2pdf.c:5393:1: start of procedure t2p_write_pdf()
5391. */
5392. 
5393. tsize_t t2p_write_pdf(T2P* t2p, TIFF* input, TIFF* output){
      ^
5394. 
5395. 	tsize_t written=0;

tools/tiff2pdf.c:5395:2: 
5393. tsize_t t2p_write_pdf(T2P* t2p, TIFF* input, TIFF* output){
5394. 
5395. 	tsize_t written=0;
       ^
5396. 	ttile_t i2=0;
5397. 	tsize_t streamlen=0;

tools/tiff2pdf.c:5396:2: 
5394. 
5395. 	tsize_t written=0;
5396. 	ttile_t i2=0;
       ^
5397. 	tsize_t streamlen=0;
5398. 	uint16 i=0;

tools/tiff2pdf.c:5397:2: 
5395. 	tsize_t written=0;
5396. 	ttile_t i2=0;
5397. 	tsize_t streamlen=0;
       ^
5398. 	uint16 i=0;
5399. 

tools/tiff2pdf.c:5398:2: 
5396. 	ttile_t i2=0;
5397. 	tsize_t streamlen=0;
5398. 	uint16 i=0;
       ^
5399. 
5400. 	t2p_read_tiff_init(t2p, input);

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

tools/tiff2pdf.c:5401:5: Taking false branch
5399. 
5400. 	t2p_read_tiff_init(t2p, input);
5401. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
          ^
5402. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
5403. 	if(t2p->pdf_xrefoffsets==NULL){

tools/tiff2pdf.c:5402:46: Condition is true
5400. 	t2p_read_tiff_init(t2p, input);
5401. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5402. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
                                                   ^
5403. 	if(t2p->pdf_xrefoffsets==NULL){
5404. 		TIFFError(

tools/tiff2pdf.c:5402:46: Condition is true
5400. 	t2p_read_tiff_init(t2p, input);
5401. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5402. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
                                                   ^
5403. 	if(t2p->pdf_xrefoffsets==NULL){
5404. 		TIFFError(

tools/tiff2pdf.c:5402:2: 
5400. 	t2p_read_tiff_init(t2p, input);
5401. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5402. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
       ^
5403. 	if(t2p->pdf_xrefoffsets==NULL){
5404. 		TIFFError(

libtiff/tif_unix.c:310:1: start of procedure _TIFFmalloc()
  308. #endif
  309. 
  310. void*
       ^
  311. _TIFFmalloc(tmsize_t s)
  312. {

libtiff/tif_unix.c:313:13: Taking false branch
  311. _TIFFmalloc(tmsize_t s)
  312. {
  313.         if (s == 0)
                   ^
  314.                 return ((void *) NULL);
  315. 

libtiff/tif_unix.c:316:2: 
  314.                 return ((void *) NULL);
  315. 
  316. 	return (malloc((size_t) s));
        ^
  317. }
  318. 

libtiff/tif_unix.c:317:1: return from a call to _TIFFmalloc
  315. 
  316. 	return (malloc((size_t) s));
  317. }
       ^
  318. 
  319. void

tools/tiff2pdf.c:5403:5: Taking false branch
5401. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5402. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
5403. 	if(t2p->pdf_xrefoffsets==NULL){
          ^
5404. 		TIFFError(
5405. 			TIFF2PDF_MODULE, 

tools/tiff2pdf.c:5411:2: 
5409. 		return(written);
5410. 	}
5411. 	t2p->pdf_xrefcount=0;
       ^
5412. 	t2p->pdf_catalog=1;
5413. 	t2p->pdf_info=2;

tools/tiff2pdf.c:5412:2: 
5410. 	}
5411. 	t2p->pdf_xrefcount=0;
5412. 	t2p->pdf_catalog=1;
       ^
5413. 	t2p->pdf_info=2;
5414. 	t2p->pdf_pages=3;

tools/tiff2pdf.c:5413:2: 
5411. 	t2p->pdf_xrefcount=0;
5412. 	t2p->pdf_catalog=1;
5413. 	t2p->pdf_info=2;
       ^
5414. 	t2p->pdf_pages=3;
5415. 	written += t2p_write_pdf_header(t2p, output);

tools/tiff2pdf.c:5414:2: 
5412. 	t2p->pdf_catalog=1;
5413. 	t2p->pdf_info=2;
5414. 	t2p->pdf_pages=3;
       ^
5415. 	written += t2p_write_pdf_header(t2p, output);
5416. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;

tools/tiff2pdf.c:5415:2: 
5413. 	t2p->pdf_info=2;
5414. 	t2p->pdf_pages=3;
5415. 	written += t2p_write_pdf_header(t2p, output);
       ^
5416. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5417. 	t2p->pdf_catalog=t2p->pdf_xrefcount;

tools/tiff2pdf.c:3751:1: start of procedure t2p_write_pdf_header()
  3749. */
  3750. 
  3751. tsize_t t2p_write_pdf_header(T2P* t2p, TIFF* output){
        ^
  3752. 
  3753. 	tsize_t written=0;

tools/tiff2pdf.c:3753:2: 
  3751. tsize_t t2p_write_pdf_header(T2P* t2p, TIFF* output){
  3752. 
  3753. 	tsize_t written=0;
         ^
  3754. 	char buffer[16];
  3755. 	int buflen=0;

tools/tiff2pdf.c:3755:2: 
  3753. 	tsize_t written=0;
  3754. 	char buffer[16];
  3755. 	int buflen=0;
         ^
  3756. 	
  3757. 	buflen = snprintf(buffer, sizeof(buffer), "%%PDF-%u.%u ",

tools/tiff2pdf.c:3757:2: 
  3755. 	int buflen=0;
  3756. 	
  3757. 	buflen = snprintf(buffer, sizeof(buffer), "%%PDF-%u.%u ",
         ^
  3758. 			  t2p->pdf_majorversion&0xff,
  3759. 			  t2p->pdf_minorversion&0xff);

tools/tiff2pdf.c:3760:2: Taking false branch
  3758. 			  t2p->pdf_majorversion&0xff,
  3759. 			  t2p->pdf_minorversion&0xff);
  3760. 	check_snprintf_ret(t2p, buflen, buffer);
         ^
  3761. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen);
  3762. 	written += t2pWriteFile(output, (tdata_t)"\n%\342\343\317\323\n", 7);

tools/tiff2pdf.c:3760:2: Taking false branch
  3758. 			  t2p->pdf_majorversion&0xff,
  3759. 			  t2p->pdf_minorversion&0xff);
  3760. 	check_snprintf_ret(t2p, buflen, buffer);
         ^
  3761. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen);
  3762. 	written += t2pWriteFile(output, (tdata_t)"\n%\342\343\317\323\n", 7);

tools/tiff2pdf.c:3761:2: 
  3759. 			  t2p->pdf_minorversion&0xff);
  3760. 	check_snprintf_ret(t2p, buflen, buffer);
  3761. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen);
         ^
  3762. 	written += t2pWriteFile(output, (tdata_t)"\n%\342\343\317\323\n", 7);
  3763. 

tools/tiff2pdf.c:373:1: start of procedure t2pWriteFile()
    371. #endif /* OJPEG_SUPPORT */
    372. 
    373. static tmsize_t 
         ^
    374. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    375. {

tools/tiff2pdf.c:376:2: 
    374. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    375. {
    376. 	thandle_t client = TIFFClientdata(tif);
          ^
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    378. 	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:377:2: 
    375. {
    376. 	thandle_t client = TIFFClientdata(tif);
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    378. 	if (proc)
    379. 		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:378:6: Taking false branch
    376. 	thandle_t client = TIFFClientdata(tif);
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    378. 	if (proc)
              ^
    379. 		return proc(client, data, size);
    380. 	return -1;

tools/tiff2pdf.c:380:2: 
    378. 	if (proc)
    379. 		return proc(client, data, size);
    380. 	return -1;
          ^
    381. }
    382. 

tools/tiff2pdf.c:381:1: return from a call to t2pWriteFile
    379. 		return proc(client, data, size);
    380. 	return -1;
    381. }
         ^
    382. 
    383. static uint64

tools/tiff2pdf.c:3762:2: 
  3760. 	check_snprintf_ret(t2p, buflen, buffer);
  3761. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen);
  3762. 	written += t2pWriteFile(output, (tdata_t)"\n%\342\343\317\323\n", 7);
         ^
  3763. 
  3764. 	return(written);

tools/tiff2pdf.c:373:1: start of procedure t2pWriteFile()
    371. #endif /* OJPEG_SUPPORT */
    372. 
    373. static tmsize_t 
         ^
    374. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    375. {

tools/tiff2pdf.c:376:2: 
    374. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    375. {
    376. 	thandle_t client = TIFFClientdata(tif);
          ^
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    378. 	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:377:2: 
    375. {
    376. 	thandle_t client = TIFFClientdata(tif);
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    378. 	if (proc)
    379. 		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:378:6: Taking false branch
    376. 	thandle_t client = TIFFClientdata(tif);
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    378. 	if (proc)
              ^
    379. 		return proc(client, data, size);
    380. 	return -1;

tools/tiff2pdf.c:380:2: 
    378. 	if (proc)
    379. 		return proc(client, data, size);
    380. 	return -1;
          ^
    381. }
    382. 

tools/tiff2pdf.c:381:1: return from a call to t2pWriteFile
    379. 		return proc(client, data, size);
    380. 	return -1;
    381. }
         ^
    382. 
    383. static uint64

tools/tiff2pdf.c:3764:2: 
  3762. 	written += t2pWriteFile(output, (tdata_t)"\n%\342\343\317\323\n", 7);
  3763. 
  3764. 	return(written);
         ^
  3765. }
  3766. 

tools/tiff2pdf.c:3765:1: return from a call to t2p_write_pdf_header
  3763. 
  3764. 	return(written);
  3765. }
        ^
  3766. 
  3767. /*

tools/tiff2pdf.c:5416:2: 
5414. 	t2p->pdf_pages=3;
5415. 	written += t2p_write_pdf_header(t2p, output);
5416. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
       ^
5417. 	t2p->pdf_catalog=t2p->pdf_xrefcount;
5418. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);

tools/tiff2pdf.c:5417:2: 
5415. 	written += t2p_write_pdf_header(t2p, output);
5416. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5417. 	t2p->pdf_catalog=t2p->pdf_xrefcount;
       ^
5418. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5419. 	written += t2p_write_pdf_catalog(t2p, output);

tools/tiff2pdf.c:5418:2: 
5416. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5417. 	t2p->pdf_catalog=t2p->pdf_xrefcount;
5418. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
       ^
5419. 	written += t2p_write_pdf_catalog(t2p, output);
5420. 	written += t2p_write_pdf_obj_end(output);

tools/tiff2pdf.c:3771:1: start of procedure t2p_write_pdf_obj_start()
  3769. */
  3770. 
  3771. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
        ^
  3772. 
  3773. 	tsize_t written=0;

tools/tiff2pdf.c:3773:2: 
  3771. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
  3772. 
  3773. 	tsize_t written=0;
         ^
  3774. 	char buffer[32];
  3775. 	int buflen=0;

tools/tiff2pdf.c:3775:2: 
  3773. 	tsize_t written=0;
  3774. 	char buffer[32];
  3775. 	int buflen=0;
         ^
  3776. 
  3777. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);

tools/tiff2pdf.c:3777:2: 
  3775. 	int buflen=0;
  3776. 
  3777. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
         ^
  3778. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3779. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );

tools/tiff2pdf.c:3778:2: Taking false branch
  3776. 
  3777. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
  3778. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
         ^
  3779. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
  3780. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);

tools/tiff2pdf.c:3778:2: Taking false branch
  3776. 
  3777. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
  3778. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
         ^
  3779. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
  3780. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);

tools/tiff2pdf.c:3779:2: 
  3777. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
  3778. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3779. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
         ^
  3780. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
  3781. 

tools/tiff2pdf.c:373:1: start of procedure t2pWriteFile()
    371. #endif /* OJPEG_SUPPORT */
    372. 
    373. static tmsize_t 
         ^
    374. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    375. {

tools/tiff2pdf.c:376:2: 
    374. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    375. {
    376. 	thandle_t client = TIFFClientdata(tif);
          ^
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    378. 	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:377:2: 
    375. {
    376. 	thandle_t client = TIFFClientdata(tif);
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    378. 	if (proc)
    379. 		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:378:6: Taking false branch
    376. 	thandle_t client = TIFFClientdata(tif);
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    378. 	if (proc)
              ^
    379. 		return proc(client, data, size);
    380. 	return -1;

tools/tiff2pdf.c:380:2: 
    378. 	if (proc)
    379. 		return proc(client, data, size);
    380. 	return -1;
          ^
    381. }
    382. 

tools/tiff2pdf.c:381:1: return from a call to t2pWriteFile
    379. 		return proc(client, data, size);
    380. 	return -1;
    381. }
         ^
    382. 
    383. static uint64

tools/tiff2pdf.c:3780:2: 
  3778. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3779. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
  3780. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
         ^
  3781. 
  3782. 	return(written);

tools/tiff2pdf.c:373:1: start of procedure t2pWriteFile()
    371. #endif /* OJPEG_SUPPORT */
    372. 
    373. static tmsize_t 
         ^
    374. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    375. {

tools/tiff2pdf.c:376:2: 
    374. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    375. {
    376. 	thandle_t client = TIFFClientdata(tif);
          ^
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    378. 	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:377:2: 
    375. {
    376. 	thandle_t client = TIFFClientdata(tif);
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    378. 	if (proc)
    379. 		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:378:6: Taking false branch
    376. 	thandle_t client = TIFFClientdata(tif);
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    378. 	if (proc)
              ^
    379. 		return proc(client, data, size);
    380. 	return -1;

tools/tiff2pdf.c:380:2: 
    378. 	if (proc)
    379. 		return proc(client, data, size);
    380. 	return -1;
          ^
    381. }
    382. 

tools/tiff2pdf.c:381:1: return from a call to t2pWriteFile
    379. 		return proc(client, data, size);
    380. 	return -1;
    381. }
         ^
    382. 
    383. static uint64

tools/tiff2pdf.c:3782:2: 
  3780. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
  3781. 
  3782. 	return(written);
         ^
  3783. }
  3784. 

tools/tiff2pdf.c:3783:1: return from a call to t2p_write_pdf_obj_start
  3781. 
  3782. 	return(written);
  3783. }
        ^
  3784. 
  3785. /*

tools/tiff2pdf.c:5419:2: 
5417. 	t2p->pdf_catalog=t2p->pdf_xrefcount;
5418. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5419. 	written += t2p_write_pdf_catalog(t2p, output);
       ^
5420. 	written += t2p_write_pdf_obj_end(output);
5421. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;

tools/tiff2pdf.c:4060:1: start of procedure t2p_write_pdf_catalog()
  4058.  */
  4059. 
  4060. tsize_t t2p_write_pdf_catalog(T2P* t2p, TIFF* output)
        ^
  4061. {
  4062. 	tsize_t written = 0;

tools/tiff2pdf.c:4062:2: 
  4060. tsize_t t2p_write_pdf_catalog(T2P* t2p, TIFF* output)
  4061. {
  4062. 	tsize_t written = 0;
         ^
  4063. 	char buffer[32];
  4064. 	int buflen = 0;

tools/tiff2pdf.c:4064:2: 
  4062. 	tsize_t written = 0;
  4063. 	char buffer[32];
  4064. 	int buflen = 0;
         ^
  4065. 
  4066. 	written += t2pWriteFile(output, 

tools/tiff2pdf.c:4066:2: 
  4064. 	int buflen = 0;
  4065. 
  4066. 	written += t2pWriteFile(output, 
         ^
  4067. 		(tdata_t)"<< \n/Type /Catalog \n/Pages ", 
  4068. 		27);

tools/tiff2pdf.c:373:1: start of procedure t2pWriteFile()
    371. #endif /* OJPEG_SUPPORT */
    372. 
    373. static tmsize_t 
         ^
    374. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    375. {

tools/tiff2pdf.c:376:2: 
    374. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    375. {
    376. 	thandle_t client = TIFFClientdata(tif);
          ^
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    378. 	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:377:2: 
    375. {
    376. 	thandle_t client = TIFFClientdata(tif);
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    378. 	if (proc)
    379. 		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:378:6: Taking false branch
    376. 	thandle_t client = TIFFClientdata(tif);
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    378. 	if (proc)
              ^
    379. 		return proc(client, data, size);
    380. 	return -1;

tools/tiff2pdf.c:380:2: 
    378. 	if (proc)
    379. 		return proc(client, data, size);
    380. 	return -1;
          ^
    381. }
    382. 

tools/tiff2pdf.c:381:1: return from a call to t2pWriteFile
    379. 		return proc(client, data, size);
    380. 	return -1;
    381. }
         ^
    382. 
    383. static uint64

tools/tiff2pdf.c:4069:2: 
  4067. 		(tdata_t)"<< \n/Type /Catalog \n/Pages ", 
  4068. 		27);
  4069. 	buflen = snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)t2p->pdf_pages);
         ^
  4070. 	check_snprintf_ret(t2p, buflen, buffer);
  4071. 	written += t2pWriteFile(output, (tdata_t) buffer,

tools/tiff2pdf.c:4070:2: Taking false branch
  4068. 		27);
  4069. 	buflen = snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)t2p->pdf_pages);
  4070. 	check_snprintf_ret(t2p, buflen, buffer);
         ^
  4071. 	written += t2pWriteFile(output, (tdata_t) buffer,
  4072. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));

tools/tiff2pdf.c:4070:2: Taking false branch
  4068. 		27);
  4069. 	buflen = snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)t2p->pdf_pages);
  4070. 	check_snprintf_ret(t2p, buflen, buffer);
         ^
  4071. 	written += t2pWriteFile(output, (tdata_t) buffer,
  4072. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));

tools/tiff2pdf.c:4072:5: Condition is false
  4070. 	check_snprintf_ret(t2p, buflen, buffer);
  4071. 	written += t2pWriteFile(output, (tdata_t) buffer,
  4072. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));
            ^
  4073. 	written += t2pWriteFile(output, (tdata_t) " 0 R \n", 6);
  4074. 	if(t2p->pdf_fitwindow){

tools/tiff2pdf.c:4071:2: 
  4069. 	buflen = snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)t2p->pdf_pages);
  4070. 	check_snprintf_ret(t2p, buflen, buffer);
  4071. 	written += t2pWriteFile(output, (tdata_t) buffer,
         ^
  4072. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));
  4073. 	written += t2pWriteFile(output, (tdata_t) " 0 R \n", 6);

tools/tiff2pdf.c:373:1: start of procedure t2pWriteFile()
    371. #endif /* OJPEG_SUPPORT */
    372. 
    373. static tmsize_t 
         ^
    374. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    375. {

tools/tiff2pdf.c:376:2: 
    374. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    375. {
    376. 	thandle_t client = TIFFClientdata(tif);
          ^
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    378. 	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:377:2: 
    375. {
    376. 	thandle_t client = TIFFClientdata(tif);
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    378. 	if (proc)
    379. 		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:378:6: Taking false branch
    376. 	thandle_t client = TIFFClientdata(tif);
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    378. 	if (proc)
              ^
    379. 		return proc(client, data, size);
    380. 	return -1;

tools/tiff2pdf.c:380:2: 
    378. 	if (proc)
    379. 		return proc(client, data, size);
    380. 	return -1;
          ^
    381. }
    382. 

tools/tiff2pdf.c:381:1: return from a call to t2pWriteFile
    379. 		return proc(client, data, size);
    380. 	return -1;
    381. }
         ^
    382. 
    383. static uint64

tools/tiff2pdf.c:4073:2: 
  4071. 	written += t2pWriteFile(output, (tdata_t) buffer,
  4072. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));
  4073. 	written += t2pWriteFile(output, (tdata_t) " 0 R \n", 6);
         ^
  4074. 	if(t2p->pdf_fitwindow){
  4075. 		written += t2pWriteFile(output, 

tools/tiff2pdf.c:373:1: start of procedure t2pWriteFile()
    371. #endif /* OJPEG_SUPPORT */
    372. 
    373. static tmsize_t 
         ^
    374. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    375. {

tools/tiff2pdf.c:376:2: 
    374. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    375. {
    376. 	thandle_t client = TIFFClientdata(tif);
          ^
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    378. 	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:377:2: 
    375. {
    376. 	thandle_t client = TIFFClientdata(tif);
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    378. 	if (proc)
    379. 		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:378:6: Taking false branch
    376. 	thandle_t client = TIFFClientdata(tif);
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    378. 	if (proc)
              ^
    379. 		return proc(client, data, size);
    380. 	return -1;

tools/tiff2pdf.c:380:2: 
    378. 	if (proc)
    379. 		return proc(client, data, size);
    380. 	return -1;
          ^
    381. }
    382. 

tools/tiff2pdf.c:381:1: return from a call to t2pWriteFile
    379. 		return proc(client, data, size);
    380. 	return -1;
    381. }
         ^
    382. 
    383. static uint64

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

tools/tiff2pdf.c:4075:3: 
  4073. 	written += t2pWriteFile(output, (tdata_t) " 0 R \n", 6);
  4074. 	if(t2p->pdf_fitwindow){
  4075. 		written += t2pWriteFile(output, 
          ^
  4076. 			(tdata_t) "/ViewerPreferences <</FitWindow true>>\n", 
  4077. 			39);

tools/tiff2pdf.c:373:1: start of procedure t2pWriteFile()
    371. #endif /* OJPEG_SUPPORT */
    372. 
    373. static tmsize_t 
         ^
    374. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    375. {

tools/tiff2pdf.c:376:2: 
    374. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    375. {
    376. 	thandle_t client = TIFFClientdata(tif);
          ^
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    378. 	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:377:2: 
    375. {
    376. 	thandle_t client = TIFFClientdata(tif);
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    378. 	if (proc)
    379. 		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:378:6: Taking false branch
    376. 	thandle_t client = TIFFClientdata(tif);
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    378. 	if (proc)
              ^
    379. 		return proc(client, data, size);
    380. 	return -1;

tools/tiff2pdf.c:380:2: 
    378. 	if (proc)
    379. 		return proc(client, data, size);
    380. 	return -1;
          ^
    381. }
    382. 

tools/tiff2pdf.c:381:1: return from a call to t2pWriteFile
    379. 		return proc(client, data, size);
    380. 	return -1;
    381. }
         ^
    382. 
    383. static uint64

tools/tiff2pdf.c:4079:2: 
  4077. 			39);
  4078. 	}
  4079. 	written += t2pWriteFile(output, (tdata_t)">>\n", 3);
         ^
  4080. 
  4081. 	return(written);

tools/tiff2pdf.c:373:1: start of procedure t2pWriteFile()
    371. #endif /* OJPEG_SUPPORT */
    372. 
    373. static tmsize_t 
         ^
    374. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    375. {

tools/tiff2pdf.c:376:2: 
    374. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    375. {
    376. 	thandle_t client = TIFFClientdata(tif);
          ^
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    378. 	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:377:2: 
    375. {
    376. 	thandle_t client = TIFFClientdata(tif);
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    378. 	if (proc)
    379. 		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:378:6: Taking false branch
    376. 	thandle_t client = TIFFClientdata(tif);
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    378. 	if (proc)
              ^
    379. 		return proc(client, data, size);
    380. 	return -1;

tools/tiff2pdf.c:380:2: 
    378. 	if (proc)
    379. 		return proc(client, data, size);
    380. 	return -1;
          ^
    381. }
    382. 

tools/tiff2pdf.c:381:1: return from a call to t2pWriteFile
    379. 		return proc(client, data, size);
    380. 	return -1;
    381. }
         ^
    382. 
    383. static uint64

tools/tiff2pdf.c:4081:2: 
  4079. 	written += t2pWriteFile(output, (tdata_t)">>\n", 3);
  4080. 
  4081. 	return(written);
         ^
  4082. }
  4083. 

tools/tiff2pdf.c:4082:1: return from a call to t2p_write_pdf_catalog
  4080. 
  4081. 	return(written);
  4082. }
        ^
  4083. 
  4084. /*

tools/tiff2pdf.c:5420:2: 
5418. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5419. 	written += t2p_write_pdf_catalog(t2p, output);
5420. 	written += t2p_write_pdf_obj_end(output);
       ^
5421. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5422. 	t2p->pdf_info=t2p->pdf_xrefcount;

tools/tiff2pdf.c:3789:1: start of procedure t2p_write_pdf_obj_end()
  3787. */
  3788. 
  3789. tsize_t t2p_write_pdf_obj_end(TIFF* output){
        ^
  3790. 
  3791. 	tsize_t written=0;

tools/tiff2pdf.c:3791:2: 
  3789. tsize_t t2p_write_pdf_obj_end(TIFF* output){
  3790. 
  3791. 	tsize_t written=0;
         ^
  3792. 
  3793. 	written += t2pWriteFile(output, (tdata_t) "endobj\n", 7);

tools/tiff2pdf.c:3793:2: 
  3791. 	tsize_t written=0;
  3792. 
  3793. 	written += t2pWriteFile(output, (tdata_t) "endobj\n", 7);
         ^
  3794. 
  3795. 	return(written);

tools/tiff2pdf.c:373:1: start of procedure t2pWriteFile()
    371. #endif /* OJPEG_SUPPORT */
    372. 
    373. static tmsize_t 
         ^
    374. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    375. {

tools/tiff2pdf.c:376:2: 
    374. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    375. {
    376. 	thandle_t client = TIFFClientdata(tif);
          ^
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    378. 	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:377:2: 
    375. {
    376. 	thandle_t client = TIFFClientdata(tif);
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    378. 	if (proc)
    379. 		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:378:6: Taking false branch
    376. 	thandle_t client = TIFFClientdata(tif);
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    378. 	if (proc)
              ^
    379. 		return proc(client, data, size);
    380. 	return -1;

tools/tiff2pdf.c:380:2: 
    378. 	if (proc)
    379. 		return proc(client, data, size);
    380. 	return -1;
          ^
    381. }
    382. 

tools/tiff2pdf.c:381:1: return from a call to t2pWriteFile
    379. 		return proc(client, data, size);
    380. 	return -1;
    381. }
         ^
    382. 
    383. static uint64

tools/tiff2pdf.c:3795:2: 
  3793. 	written += t2pWriteFile(output, (tdata_t) "endobj\n", 7);
  3794. 
  3795. 	return(written);
         ^
  3796. }
  3797. 

tools/tiff2pdf.c:3796:1: return from a call to t2p_write_pdf_obj_end
  3794. 
  3795. 	return(written);
  3796. }
        ^
  3797. 
  3798. /*

tools/tiff2pdf.c:5421:2: 
5419. 	written += t2p_write_pdf_catalog(t2p, output);
5420. 	written += t2p_write_pdf_obj_end(output);
5421. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
       ^
5422. 	t2p->pdf_info=t2p->pdf_xrefcount;
5423. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);

tools/tiff2pdf.c:5422:2: 
5420. 	written += t2p_write_pdf_obj_end(output);
5421. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5422. 	t2p->pdf_info=t2p->pdf_xrefcount;
       ^
5423. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5424. 	written += t2p_write_pdf_info(t2p, input, output);

tools/tiff2pdf.c:5423:2: 
5421. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5422. 	t2p->pdf_info=t2p->pdf_xrefcount;
5423. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
       ^
5424. 	written += t2p_write_pdf_info(t2p, input, output);
5425. 	written += t2p_write_pdf_obj_end(output);

tools/tiff2pdf.c:3771:1: start of procedure t2p_write_pdf_obj_start()
  3769. */
  3770. 
  3771. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
        ^
  3772. 
  3773. 	tsize_t written=0;

tools/tiff2pdf.c:3773:2: 
  3771. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
  3772. 
  3773. 	tsize_t written=0;
         ^
  3774. 	char buffer[32];
  3775. 	int buflen=0;

tools/tiff2pdf.c:3775:2: 
  3773. 	tsize_t written=0;
  3774. 	char buffer[32];
  3775. 	int buflen=0;
         ^
  3776. 
  3777. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);

tools/tiff2pdf.c:3777:2: 
  3775. 	int buflen=0;
  3776. 
  3777. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
         ^
  3778. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3779. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );

tools/tiff2pdf.c:3778:2: Taking false branch
  3776. 
  3777. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
  3778. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
         ^
  3779. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
  3780. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);

tools/tiff2pdf.c:3778:2: Taking false branch
  3776. 
  3777. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
  3778. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
         ^
  3779. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
  3780. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);

tools/tiff2pdf.c:3779:2: 
  3777. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
  3778. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3779. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
         ^
  3780. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
  3781. 

tools/tiff2pdf.c:373:1: start of procedure t2pWriteFile()
    371. #endif /* OJPEG_SUPPORT */
    372. 
    373. static tmsize_t 
         ^
    374. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    375. {

tools/tiff2pdf.c:376:2: 
    374. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    375. {
    376. 	thandle_t client = TIFFClientdata(tif);
          ^
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    378. 	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:377:2: 
    375. {
    376. 	thandle_t client = TIFFClientdata(tif);
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    378. 	if (proc)
    379. 		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:378:6: Taking false branch
    376. 	thandle_t client = TIFFClientdata(tif);
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    378. 	if (proc)
              ^
    379. 		return proc(client, data, size);
    380. 	return -1;

tools/tiff2pdf.c:380:2: 
    378. 	if (proc)
    379. 		return proc(client, data, size);
    380. 	return -1;
          ^
    381. }
    382. 

tools/tiff2pdf.c:381:1: return from a call to t2pWriteFile
    379. 		return proc(client, data, size);
    380. 	return -1;
    381. }
         ^
    382. 
    383. static uint64

tools/tiff2pdf.c:3780:2: 
  3778. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3779. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
  3780. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
         ^
  3781. 
  3782. 	return(written);

tools/tiff2pdf.c:373:1: start of procedure t2pWriteFile()
    371. #endif /* OJPEG_SUPPORT */
    372. 
    373. static tmsize_t 
         ^
    374. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    375. {

tools/tiff2pdf.c:376:2: 
    374. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    375. {
    376. 	thandle_t client = TIFFClientdata(tif);
          ^
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    378. 	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:377:2: 
    375. {
    376. 	thandle_t client = TIFFClientdata(tif);
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    378. 	if (proc)
    379. 		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:378:6: Taking false branch
    376. 	thandle_t client = TIFFClientdata(tif);
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    378. 	if (proc)
              ^
    379. 		return proc(client, data, size);
    380. 	return -1;

tools/tiff2pdf.c:380:2: 
    378. 	if (proc)
    379. 		return proc(client, data, size);
    380. 	return -1;
          ^
    381. }
    382. 

tools/tiff2pdf.c:381:1: return from a call to t2pWriteFile
    379. 		return proc(client, data, size);
    380. 	return -1;
    381. }
         ^
    382. 
    383. static uint64

tools/tiff2pdf.c:3782:2: 
  3780. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
  3781. 
  3782. 	return(written);
         ^
  3783. }
  3784. 

tools/tiff2pdf.c:3783:1: return from a call to t2p_write_pdf_obj_start
  3781. 
  3782. 	return(written);
  3783. }
        ^
  3784. 
  3785. /*

tools/tiff2pdf.c:5424:2: Skipping t2p_write_pdf_info(): empty list of specs
5422. 	t2p->pdf_info=t2p->pdf_xrefcount;
5423. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5424. 	written += t2p_write_pdf_info(t2p, input, output);
       ^
5425. 	written += t2p_write_pdf_obj_end(output);
5426. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
