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

tools/tiff2pdf.c:5415:1: start of procedure t2p_write_pdf()
5413. */
5414. 
5415. tsize_t t2p_write_pdf(T2P* t2p, TIFF* input, TIFF* output){
      ^
5416. 
5417. 	tsize_t written=0;

tools/tiff2pdf.c:5417:2: 
5415. tsize_t t2p_write_pdf(T2P* t2p, TIFF* input, TIFF* output){
5416. 
5417. 	tsize_t written=0;
       ^
5418. 	ttile_t i2=0;
5419. 	tsize_t streamlen=0;

tools/tiff2pdf.c:5418:2: 
5416. 
5417. 	tsize_t written=0;
5418. 	ttile_t i2=0;
       ^
5419. 	tsize_t streamlen=0;
5420. 	uint16 i=0;

tools/tiff2pdf.c:5419:2: 
5417. 	tsize_t written=0;
5418. 	ttile_t i2=0;
5419. 	tsize_t streamlen=0;
       ^
5420. 	uint16 i=0;
5421. 

tools/tiff2pdf.c:5420:2: 
5418. 	ttile_t i2=0;
5419. 	tsize_t streamlen=0;
5420. 	uint16 i=0;
       ^
5421. 
5422. 	t2p_read_tiff_init(t2p, input);

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

tools/tiff2pdf.c:5423:5: Taking false branch
5421. 
5422. 	t2p_read_tiff_init(t2p, input);
5423. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
          ^
5424. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
5425. 	if(t2p->pdf_xrefoffsets==NULL){

tools/tiff2pdf.c:5424:46: Condition is true
5422. 	t2p_read_tiff_init(t2p, input);
5423. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5424. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
                                                   ^
5425. 	if(t2p->pdf_xrefoffsets==NULL){
5426. 		TIFFError(

tools/tiff2pdf.c:5424:46: Condition is true
5422. 	t2p_read_tiff_init(t2p, input);
5423. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5424. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
                                                   ^
5425. 	if(t2p->pdf_xrefoffsets==NULL){
5426. 		TIFFError(

tools/tiff2pdf.c:5424:2: 
5422. 	t2p_read_tiff_init(t2p, input);
5423. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5424. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
       ^
5425. 	if(t2p->pdf_xrefoffsets==NULL){
5426. 		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:5425:5: Taking false branch
5423. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5424. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
5425. 	if(t2p->pdf_xrefoffsets==NULL){
          ^
5426. 		TIFFError(
5427. 			TIFF2PDF_MODULE, 

tools/tiff2pdf.c:5433:2: 
5431. 		return(written);
5432. 	}
5433. 	t2p->pdf_xrefcount=0;
       ^
5434. 	t2p->pdf_catalog=1;
5435. 	t2p->pdf_info=2;

tools/tiff2pdf.c:5434:2: 
5432. 	}
5433. 	t2p->pdf_xrefcount=0;
5434. 	t2p->pdf_catalog=1;
       ^
5435. 	t2p->pdf_info=2;
5436. 	t2p->pdf_pages=3;

tools/tiff2pdf.c:5435:2: 
5433. 	t2p->pdf_xrefcount=0;
5434. 	t2p->pdf_catalog=1;
5435. 	t2p->pdf_info=2;
       ^
5436. 	t2p->pdf_pages=3;
5437. 	written += t2p_write_pdf_header(t2p, output);

tools/tiff2pdf.c:5436:2: 
5434. 	t2p->pdf_catalog=1;
5435. 	t2p->pdf_info=2;
5436. 	t2p->pdf_pages=3;
       ^
5437. 	written += t2p_write_pdf_header(t2p, output);
5438. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;

tools/tiff2pdf.c:5437:2: 
5435. 	t2p->pdf_info=2;
5436. 	t2p->pdf_pages=3;
5437. 	written += t2p_write_pdf_header(t2p, output);
       ^
5438. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5439. 	t2p->pdf_catalog=t2p->pdf_xrefcount;

tools/tiff2pdf.c:3773:1: start of procedure t2p_write_pdf_header()
  3771. */
  3772. 
  3773. tsize_t t2p_write_pdf_header(T2P* t2p, TIFF* output){
        ^
  3774. 
  3775. 	tsize_t written=0;

tools/tiff2pdf.c:3775:2: 
  3773. tsize_t t2p_write_pdf_header(T2P* t2p, TIFF* output){
  3774. 
  3775. 	tsize_t written=0;
         ^
  3776. 	char buffer[16];
  3777. 	int buflen=0;

tools/tiff2pdf.c:3777:2: 
  3775. 	tsize_t written=0;
  3776. 	char buffer[16];
  3777. 	int buflen=0;
         ^
  3778. 	
  3779. 	buflen = snprintf(buffer, sizeof(buffer), "%%PDF-%u.%u ",

tools/tiff2pdf.c:3779:2: 
  3777. 	int buflen=0;
  3778. 	
  3779. 	buflen = snprintf(buffer, sizeof(buffer), "%%PDF-%u.%u ",
         ^
  3780. 			  t2p->pdf_majorversion&0xff,
  3781. 			  t2p->pdf_minorversion&0xff);

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

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

tools/tiff2pdf.c:3783:2: 
  3781. 			  t2p->pdf_minorversion&0xff);
  3782. 	check_snprintf_ret(t2p, buflen, buffer);
  3783. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen);
         ^
  3784. 	written += t2pWriteFile(output, (tdata_t)"\n%\342\343\317\323\n", 7);
  3785. 

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:3784:2: 
  3782. 	check_snprintf_ret(t2p, buflen, buffer);
  3783. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen);
  3784. 	written += t2pWriteFile(output, (tdata_t)"\n%\342\343\317\323\n", 7);
         ^
  3785. 
  3786. 	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:3786:2: 
  3784. 	written += t2pWriteFile(output, (tdata_t)"\n%\342\343\317\323\n", 7);
  3785. 
  3786. 	return(written);
         ^
  3787. }
  3788. 

tools/tiff2pdf.c:3787:1: return from a call to t2p_write_pdf_header
  3785. 
  3786. 	return(written);
  3787. }
        ^
  3788. 
  3789. /*

tools/tiff2pdf.c:5438:2: 
5436. 	t2p->pdf_pages=3;
5437. 	written += t2p_write_pdf_header(t2p, output);
5438. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
       ^
5439. 	t2p->pdf_catalog=t2p->pdf_xrefcount;
5440. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);

tools/tiff2pdf.c:5439:2: 
5437. 	written += t2p_write_pdf_header(t2p, output);
5438. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5439. 	t2p->pdf_catalog=t2p->pdf_xrefcount;
       ^
5440. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5441. 	written += t2p_write_pdf_catalog(t2p, output);

tools/tiff2pdf.c:5440:2: 
5438. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5439. 	t2p->pdf_catalog=t2p->pdf_xrefcount;
5440. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
       ^
5441. 	written += t2p_write_pdf_catalog(t2p, output);
5442. 	written += t2p_write_pdf_obj_end(output);

tools/tiff2pdf.c:3793:1: start of procedure t2p_write_pdf_obj_start()
  3791. */
  3792. 
  3793. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
        ^
  3794. 
  3795. 	tsize_t written=0;

tools/tiff2pdf.c:3795:2: 
  3793. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
  3794. 
  3795. 	tsize_t written=0;
         ^
  3796. 	char buffer[32];
  3797. 	int buflen=0;

tools/tiff2pdf.c:3797:2: 
  3795. 	tsize_t written=0;
  3796. 	char buffer[32];
  3797. 	int buflen=0;
         ^
  3798. 
  3799. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);

tools/tiff2pdf.c:3799:2: 
  3797. 	int buflen=0;
  3798. 
  3799. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
         ^
  3800. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3801. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );

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

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

tools/tiff2pdf.c:3801:2: 
  3799. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
  3800. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3801. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
         ^
  3802. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
  3803. 

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:3802:2: 
  3800. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3801. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
  3802. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
         ^
  3803. 
  3804. 	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:3804:2: 
  3802. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
  3803. 
  3804. 	return(written);
         ^
  3805. }
  3806. 

tools/tiff2pdf.c:3805:1: return from a call to t2p_write_pdf_obj_start
  3803. 
  3804. 	return(written);
  3805. }
        ^
  3806. 
  3807. /*

tools/tiff2pdf.c:5441:2: 
5439. 	t2p->pdf_catalog=t2p->pdf_xrefcount;
5440. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5441. 	written += t2p_write_pdf_catalog(t2p, output);
       ^
5442. 	written += t2p_write_pdf_obj_end(output);
5443. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;

tools/tiff2pdf.c:4082:1: start of procedure t2p_write_pdf_catalog()
  4080.  */
  4081. 
  4082. tsize_t t2p_write_pdf_catalog(T2P* t2p, TIFF* output)
        ^
  4083. {
  4084. 	tsize_t written = 0;

tools/tiff2pdf.c:4084:2: 
  4082. tsize_t t2p_write_pdf_catalog(T2P* t2p, TIFF* output)
  4083. {
  4084. 	tsize_t written = 0;
         ^
  4085. 	char buffer[32];
  4086. 	int buflen = 0;

tools/tiff2pdf.c:4086:2: 
  4084. 	tsize_t written = 0;
  4085. 	char buffer[32];
  4086. 	int buflen = 0;
         ^
  4087. 
  4088. 	written += t2pWriteFile(output, 

tools/tiff2pdf.c:4088:2: 
  4086. 	int buflen = 0;
  4087. 
  4088. 	written += t2pWriteFile(output, 
         ^
  4089. 		(tdata_t)"<< \n/Type /Catalog \n/Pages ", 
  4090. 		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:4091:2: 
  4089. 		(tdata_t)"<< \n/Type /Catalog \n/Pages ", 
  4090. 		27);
  4091. 	buflen = snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)t2p->pdf_pages);
         ^
  4092. 	check_snprintf_ret(t2p, buflen, buffer);
  4093. 	written += t2pWriteFile(output, (tdata_t) buffer,

tools/tiff2pdf.c:4092:2: Taking false branch
  4090. 		27);
  4091. 	buflen = snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)t2p->pdf_pages);
  4092. 	check_snprintf_ret(t2p, buflen, buffer);
         ^
  4093. 	written += t2pWriteFile(output, (tdata_t) buffer,
  4094. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));

tools/tiff2pdf.c:4092:2: Taking false branch
  4090. 		27);
  4091. 	buflen = snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)t2p->pdf_pages);
  4092. 	check_snprintf_ret(t2p, buflen, buffer);
         ^
  4093. 	written += t2pWriteFile(output, (tdata_t) buffer,
  4094. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));

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

tools/tiff2pdf.c:4093:2: 
  4091. 	buflen = snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)t2p->pdf_pages);
  4092. 	check_snprintf_ret(t2p, buflen, buffer);
  4093. 	written += t2pWriteFile(output, (tdata_t) buffer,
         ^
  4094. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));
  4095. 	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:4095:2: 
  4093. 	written += t2pWriteFile(output, (tdata_t) buffer,
  4094. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));
  4095. 	written += t2pWriteFile(output, (tdata_t) " 0 R \n", 6);
         ^
  4096. 	if(t2p->pdf_fitwindow){
  4097. 		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:4096:5: Taking true branch
  4094. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));
  4095. 	written += t2pWriteFile(output, (tdata_t) " 0 R \n", 6);
  4096. 	if(t2p->pdf_fitwindow){
            ^
  4097. 		written += t2pWriteFile(output, 
  4098. 			(tdata_t) "/ViewerPreferences <</FitWindow true>>\n", 

tools/tiff2pdf.c:4097:3: 
  4095. 	written += t2pWriteFile(output, (tdata_t) " 0 R \n", 6);
  4096. 	if(t2p->pdf_fitwindow){
  4097. 		written += t2pWriteFile(output, 
          ^
  4098. 			(tdata_t) "/ViewerPreferences <</FitWindow true>>\n", 
  4099. 			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:4101:2: 
  4099. 			39);
  4100. 	}
  4101. 	written += t2pWriteFile(output, (tdata_t)">>\n", 3);
         ^
  4102. 
  4103. 	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:4103:2: 
  4101. 	written += t2pWriteFile(output, (tdata_t)">>\n", 3);
  4102. 
  4103. 	return(written);
         ^
  4104. }
  4105. 

tools/tiff2pdf.c:4104:1: return from a call to t2p_write_pdf_catalog
  4102. 
  4103. 	return(written);
  4104. }
        ^
  4105. 
  4106. /*

tools/tiff2pdf.c:5442:2: 
5440. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5441. 	written += t2p_write_pdf_catalog(t2p, output);
5442. 	written += t2p_write_pdf_obj_end(output);
       ^
5443. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5444. 	t2p->pdf_info=t2p->pdf_xrefcount;

tools/tiff2pdf.c:3811:1: start of procedure t2p_write_pdf_obj_end()
  3809. */
  3810. 
  3811. tsize_t t2p_write_pdf_obj_end(TIFF* output){
        ^
  3812. 
  3813. 	tsize_t written=0;

tools/tiff2pdf.c:3813:2: 
  3811. tsize_t t2p_write_pdf_obj_end(TIFF* output){
  3812. 
  3813. 	tsize_t written=0;
         ^
  3814. 
  3815. 	written += t2pWriteFile(output, (tdata_t) "endobj\n", 7);

tools/tiff2pdf.c:3815:2: 
  3813. 	tsize_t written=0;
  3814. 
  3815. 	written += t2pWriteFile(output, (tdata_t) "endobj\n", 7);
         ^
  3816. 
  3817. 	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:3817:2: 
  3815. 	written += t2pWriteFile(output, (tdata_t) "endobj\n", 7);
  3816. 
  3817. 	return(written);
         ^
  3818. }
  3819. 

tools/tiff2pdf.c:3818:1: return from a call to t2p_write_pdf_obj_end
  3816. 
  3817. 	return(written);
  3818. }
        ^
  3819. 
  3820. /*

tools/tiff2pdf.c:5443:2: 
5441. 	written += t2p_write_pdf_catalog(t2p, output);
5442. 	written += t2p_write_pdf_obj_end(output);
5443. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
       ^
5444. 	t2p->pdf_info=t2p->pdf_xrefcount;
5445. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);

tools/tiff2pdf.c:5444:2: 
5442. 	written += t2p_write_pdf_obj_end(output);
5443. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5444. 	t2p->pdf_info=t2p->pdf_xrefcount;
       ^
5445. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5446. 	written += t2p_write_pdf_info(t2p, input, output);

tools/tiff2pdf.c:5445:2: 
5443. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5444. 	t2p->pdf_info=t2p->pdf_xrefcount;
5445. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
       ^
5446. 	written += t2p_write_pdf_info(t2p, input, output);
5447. 	written += t2p_write_pdf_obj_end(output);

tools/tiff2pdf.c:3793:1: start of procedure t2p_write_pdf_obj_start()
  3791. */
  3792. 
  3793. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
        ^
  3794. 
  3795. 	tsize_t written=0;

tools/tiff2pdf.c:3795:2: 
  3793. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
  3794. 
  3795. 	tsize_t written=0;
         ^
  3796. 	char buffer[32];
  3797. 	int buflen=0;

tools/tiff2pdf.c:3797:2: 
  3795. 	tsize_t written=0;
  3796. 	char buffer[32];
  3797. 	int buflen=0;
         ^
  3798. 
  3799. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);

tools/tiff2pdf.c:3799:2: 
  3797. 	int buflen=0;
  3798. 
  3799. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
         ^
  3800. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3801. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );

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

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

tools/tiff2pdf.c:3801:2: 
  3799. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
  3800. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3801. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
         ^
  3802. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
  3803. 

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:3802:2: 
  3800. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3801. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
  3802. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
         ^
  3803. 
  3804. 	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:3804:2: 
  3802. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
  3803. 
  3804. 	return(written);
         ^
  3805. }
  3806. 

tools/tiff2pdf.c:3805:1: return from a call to t2p_write_pdf_obj_start
  3803. 
  3804. 	return(written);
  3805. }
        ^
  3806. 
  3807. /*

tools/tiff2pdf.c:5446:2: Skipping t2p_write_pdf_info(): empty list of specs
5444. 	t2p->pdf_info=t2p->pdf_xrefcount;
5445. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5446. 	written += t2p_write_pdf_info(t2p, input, output);
       ^
5447. 	written += t2p_write_pdf_obj_end(output);
5448. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
