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

tools/tiff2pdf.c:5424:1: start of procedure t2p_write_pdf()
5422. */
5423. 
5424. tsize_t t2p_write_pdf(T2P* t2p, TIFF* input, TIFF* output){
      ^
5425. 
5426. 	tsize_t written=0;

tools/tiff2pdf.c:5426:2: 
5424. tsize_t t2p_write_pdf(T2P* t2p, TIFF* input, TIFF* output){
5425. 
5426. 	tsize_t written=0;
       ^
5427. 	ttile_t i2=0;
5428. 	tsize_t streamlen=0;

tools/tiff2pdf.c:5427:2: 
5425. 
5426. 	tsize_t written=0;
5427. 	ttile_t i2=0;
       ^
5428. 	tsize_t streamlen=0;
5429. 	uint16 i=0;

tools/tiff2pdf.c:5428:2: 
5426. 	tsize_t written=0;
5427. 	ttile_t i2=0;
5428. 	tsize_t streamlen=0;
       ^
5429. 	uint16 i=0;
5430. 

tools/tiff2pdf.c:5429:2: 
5427. 	ttile_t i2=0;
5428. 	tsize_t streamlen=0;
5429. 	uint16 i=0;
       ^
5430. 
5431. 	t2p_read_tiff_init(t2p, input);

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

tools/tiff2pdf.c:5432:5: Taking false branch
5430. 
5431. 	t2p_read_tiff_init(t2p, input);
5432. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
          ^
5433. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
5434. 	if(t2p->pdf_xrefoffsets==NULL){

tools/tiff2pdf.c:5433:46: Condition is true
5431. 	t2p_read_tiff_init(t2p, input);
5432. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5433. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
                                                   ^
5434. 	if(t2p->pdf_xrefoffsets==NULL){
5435. 		TIFFError(

tools/tiff2pdf.c:5433:46: Condition is true
5431. 	t2p_read_tiff_init(t2p, input);
5432. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5433. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
                                                   ^
5434. 	if(t2p->pdf_xrefoffsets==NULL){
5435. 		TIFFError(

tools/tiff2pdf.c:5433:2: 
5431. 	t2p_read_tiff_init(t2p, input);
5432. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5433. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
       ^
5434. 	if(t2p->pdf_xrefoffsets==NULL){
5435. 		TIFFError(

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

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

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

libtiff/tif_unix.c:315:1: return from a call to _TIFFmalloc
  313. 
  314. 	return (malloc((size_t) s));
  315. }
       ^
  316. 
  317. void* _TIFFcalloc(tmsize_t nmemb, tmsize_t siz)

tools/tiff2pdf.c:5434:5: Taking false branch
5432. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5433. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
5434. 	if(t2p->pdf_xrefoffsets==NULL){
          ^
5435. 		TIFFError(
5436. 			TIFF2PDF_MODULE, 

tools/tiff2pdf.c:5442:2: 
5440. 		return(written);
5441. 	}
5442. 	t2p->pdf_xrefcount=0;
       ^
5443. 	t2p->pdf_catalog=1;
5444. 	t2p->pdf_info=2;

tools/tiff2pdf.c:5443:2: 
5441. 	}
5442. 	t2p->pdf_xrefcount=0;
5443. 	t2p->pdf_catalog=1;
       ^
5444. 	t2p->pdf_info=2;
5445. 	t2p->pdf_pages=3;

tools/tiff2pdf.c:5444:2: 
5442. 	t2p->pdf_xrefcount=0;
5443. 	t2p->pdf_catalog=1;
5444. 	t2p->pdf_info=2;
       ^
5445. 	t2p->pdf_pages=3;
5446. 	written += t2p_write_pdf_header(t2p, output);

tools/tiff2pdf.c:5445:2: 
5443. 	t2p->pdf_catalog=1;
5444. 	t2p->pdf_info=2;
5445. 	t2p->pdf_pages=3;
       ^
5446. 	written += t2p_write_pdf_header(t2p, output);
5447. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;

tools/tiff2pdf.c:5446:2: 
5444. 	t2p->pdf_info=2;
5445. 	t2p->pdf_pages=3;
5446. 	written += t2p_write_pdf_header(t2p, output);
       ^
5447. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5448. 	t2p->pdf_catalog=t2p->pdf_xrefcount;

tools/tiff2pdf.c:3782:1: start of procedure t2p_write_pdf_header()
  3780. */
  3781. 
  3782. tsize_t t2p_write_pdf_header(T2P* t2p, TIFF* output){
        ^
  3783. 
  3784. 	tsize_t written=0;

tools/tiff2pdf.c:3784:2: 
  3782. tsize_t t2p_write_pdf_header(T2P* t2p, TIFF* output){
  3783. 
  3784. 	tsize_t written=0;
         ^
  3785. 	char buffer[16];
  3786. 	int buflen=0;

tools/tiff2pdf.c:3786:2: 
  3784. 	tsize_t written=0;
  3785. 	char buffer[16];
  3786. 	int buflen=0;
         ^
  3787. 	
  3788. 	buflen = snprintf(buffer, sizeof(buffer), "%%PDF-%u.%u ",

tools/tiff2pdf.c:3788:2: 
  3786. 	int buflen=0;
  3787. 	
  3788. 	buflen = snprintf(buffer, sizeof(buffer), "%%PDF-%u.%u ",
         ^
  3789. 			  t2p->pdf_majorversion&0xff,
  3790. 			  t2p->pdf_minorversion&0xff);

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

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

tools/tiff2pdf.c:3792:2: 
  3790. 			  t2p->pdf_minorversion&0xff);
  3791. 	check_snprintf_ret(t2p, buflen, buffer);
  3792. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen);
         ^
  3793. 	written += t2pWriteFile(output, (tdata_t)"\n%\342\343\317\323\n", 7);
  3794. 

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:534:1: start of procedure TIFFClientdata()
      532.  * Return open file's clientdata.
      533.  */
      534. thandle_t
           ^
      535. TIFFClientdata(TIFF* tif)
      536. {

libtiff/tif_open.c:537:2: 
      535. TIFFClientdata(TIFF* tif)
      536. {
      537. 	return (tif->tif_clientdata);
            ^
      538. }
      539. 

libtiff/tif_open.c:538:1: return from a call to TIFFClientdata
      536. {
      537. 	return (tif->tif_clientdata);
      538. }
           ^
      539. 
      540. /*

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:665:1: start of procedure TIFFGetWriteProc()
      663.  * Return pointer to file write method.
      664.  */
      665. TIFFReadWriteProc
           ^
      666. TIFFGetWriteProc(TIFF* tif)
      667. {

libtiff/tif_open.c:668:2: 
      666. TIFFGetWriteProc(TIFF* tif)
      667. {
      668. 	return (tif->tif_writeproc);
            ^
      669. }
      670. 

libtiff/tif_open.c:669:1: return from a call to TIFFGetWriteProc
      667. {
      668. 	return (tif->tif_writeproc);
      669. }
           ^
      670. 
      671. /*

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:3793:2: 
  3791. 	check_snprintf_ret(t2p, buflen, buffer);
  3792. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen);
  3793. 	written += t2pWriteFile(output, (tdata_t)"\n%\342\343\317\323\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:534:1: start of procedure TIFFClientdata()
      532.  * Return open file's clientdata.
      533.  */
      534. thandle_t
           ^
      535. TIFFClientdata(TIFF* tif)
      536. {

libtiff/tif_open.c:537:2: 
      535. TIFFClientdata(TIFF* tif)
      536. {
      537. 	return (tif->tif_clientdata);
            ^
      538. }
      539. 

libtiff/tif_open.c:538:1: return from a call to TIFFClientdata
      536. {
      537. 	return (tif->tif_clientdata);
      538. }
           ^
      539. 
      540. /*

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:665:1: start of procedure TIFFGetWriteProc()
      663.  * Return pointer to file write method.
      664.  */
      665. TIFFReadWriteProc
           ^
      666. TIFFGetWriteProc(TIFF* tif)
      667. {

libtiff/tif_open.c:668:2: 
      666. TIFFGetWriteProc(TIFF* tif)
      667. {
      668. 	return (tif->tif_writeproc);
            ^
      669. }
      670. 

libtiff/tif_open.c:669:1: return from a call to TIFFGetWriteProc
      667. {
      668. 	return (tif->tif_writeproc);
      669. }
           ^
      670. 
      671. /*

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)"\n%\342\343\317\323\n", 7);
  3794. 
  3795. 	return(written);
         ^
  3796. }
  3797. 

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

tools/tiff2pdf.c:5447:2: 
5445. 	t2p->pdf_pages=3;
5446. 	written += t2p_write_pdf_header(t2p, output);
5447. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
       ^
5448. 	t2p->pdf_catalog=t2p->pdf_xrefcount;
5449. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);

tools/tiff2pdf.c:5448:2: 
5446. 	written += t2p_write_pdf_header(t2p, output);
5447. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5448. 	t2p->pdf_catalog=t2p->pdf_xrefcount;
       ^
5449. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5450. 	written += t2p_write_pdf_catalog(t2p, output);

tools/tiff2pdf.c:5449:2: 
5447. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5448. 	t2p->pdf_catalog=t2p->pdf_xrefcount;
5449. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
       ^
5450. 	written += t2p_write_pdf_catalog(t2p, output);
5451. 	written += t2p_write_pdf_obj_end(output);

tools/tiff2pdf.c:3802:1: start of procedure t2p_write_pdf_obj_start()
  3800. */
  3801. 
  3802. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
        ^
  3803. 
  3804. 	tsize_t written=0;

tools/tiff2pdf.c:3804:2: 
  3802. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
  3803. 
  3804. 	tsize_t written=0;
         ^
  3805. 	char buffer[32];
  3806. 	int buflen=0;

tools/tiff2pdf.c:3806:2: 
  3804. 	tsize_t written=0;
  3805. 	char buffer[32];
  3806. 	int buflen=0;
         ^
  3807. 
  3808. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);

tools/tiff2pdf.c:3808:2: 
  3806. 	int buflen=0;
  3807. 
  3808. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
         ^
  3809. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3810. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );

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

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

tools/tiff2pdf.c:3810:2: 
  3808. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
  3809. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3810. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
         ^
  3811. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
  3812. 

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:534:1: start of procedure TIFFClientdata()
      532.  * Return open file's clientdata.
      533.  */
      534. thandle_t
           ^
      535. TIFFClientdata(TIFF* tif)
      536. {

libtiff/tif_open.c:537:2: 
      535. TIFFClientdata(TIFF* tif)
      536. {
      537. 	return (tif->tif_clientdata);
            ^
      538. }
      539. 

libtiff/tif_open.c:538:1: return from a call to TIFFClientdata
      536. {
      537. 	return (tif->tif_clientdata);
      538. }
           ^
      539. 
      540. /*

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:665:1: start of procedure TIFFGetWriteProc()
      663.  * Return pointer to file write method.
      664.  */
      665. TIFFReadWriteProc
           ^
      666. TIFFGetWriteProc(TIFF* tif)
      667. {

libtiff/tif_open.c:668:2: 
      666. TIFFGetWriteProc(TIFF* tif)
      667. {
      668. 	return (tif->tif_writeproc);
            ^
      669. }
      670. 

libtiff/tif_open.c:669:1: return from a call to TIFFGetWriteProc
      667. {
      668. 	return (tif->tif_writeproc);
      669. }
           ^
      670. 
      671. /*

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:3811:2: 
  3809. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3810. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
  3811. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
         ^
  3812. 
  3813. 	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:534:1: start of procedure TIFFClientdata()
      532.  * Return open file's clientdata.
      533.  */
      534. thandle_t
           ^
      535. TIFFClientdata(TIFF* tif)
      536. {

libtiff/tif_open.c:537:2: 
      535. TIFFClientdata(TIFF* tif)
      536. {
      537. 	return (tif->tif_clientdata);
            ^
      538. }
      539. 

libtiff/tif_open.c:538:1: return from a call to TIFFClientdata
      536. {
      537. 	return (tif->tif_clientdata);
      538. }
           ^
      539. 
      540. /*

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:665:1: start of procedure TIFFGetWriteProc()
      663.  * Return pointer to file write method.
      664.  */
      665. TIFFReadWriteProc
           ^
      666. TIFFGetWriteProc(TIFF* tif)
      667. {

libtiff/tif_open.c:668:2: 
      666. TIFFGetWriteProc(TIFF* tif)
      667. {
      668. 	return (tif->tif_writeproc);
            ^
      669. }
      670. 

libtiff/tif_open.c:669:1: return from a call to TIFFGetWriteProc
      667. {
      668. 	return (tif->tif_writeproc);
      669. }
           ^
      670. 
      671. /*

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:3813:2: 
  3811. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
  3812. 
  3813. 	return(written);
         ^
  3814. }
  3815. 

tools/tiff2pdf.c:3814:1: return from a call to t2p_write_pdf_obj_start
  3812. 
  3813. 	return(written);
  3814. }
        ^
  3815. 
  3816. /*

tools/tiff2pdf.c:5450:2: 
5448. 	t2p->pdf_catalog=t2p->pdf_xrefcount;
5449. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5450. 	written += t2p_write_pdf_catalog(t2p, output);
       ^
5451. 	written += t2p_write_pdf_obj_end(output);
5452. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;

tools/tiff2pdf.c:4091:1: start of procedure t2p_write_pdf_catalog()
  4089.  */
  4090. 
  4091. tsize_t t2p_write_pdf_catalog(T2P* t2p, TIFF* output)
        ^
  4092. {
  4093. 	tsize_t written = 0;

tools/tiff2pdf.c:4093:2: 
  4091. tsize_t t2p_write_pdf_catalog(T2P* t2p, TIFF* output)
  4092. {
  4093. 	tsize_t written = 0;
         ^
  4094. 	char buffer[32];
  4095. 	int buflen = 0;

tools/tiff2pdf.c:4095:2: 
  4093. 	tsize_t written = 0;
  4094. 	char buffer[32];
  4095. 	int buflen = 0;
         ^
  4096. 
  4097. 	written += t2pWriteFile(output, 

tools/tiff2pdf.c:4097:2: 
  4095. 	int buflen = 0;
  4096. 
  4097. 	written += t2pWriteFile(output, 
         ^
  4098. 		(tdata_t)"<< \n/Type /Catalog \n/Pages ", 
  4099. 		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:534:1: start of procedure TIFFClientdata()
      532.  * Return open file's clientdata.
      533.  */
      534. thandle_t
           ^
      535. TIFFClientdata(TIFF* tif)
      536. {

libtiff/tif_open.c:537:2: 
      535. TIFFClientdata(TIFF* tif)
      536. {
      537. 	return (tif->tif_clientdata);
            ^
      538. }
      539. 

libtiff/tif_open.c:538:1: return from a call to TIFFClientdata
      536. {
      537. 	return (tif->tif_clientdata);
      538. }
           ^
      539. 
      540. /*

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:665:1: start of procedure TIFFGetWriteProc()
      663.  * Return pointer to file write method.
      664.  */
      665. TIFFReadWriteProc
           ^
      666. TIFFGetWriteProc(TIFF* tif)
      667. {

libtiff/tif_open.c:668:2: 
      666. TIFFGetWriteProc(TIFF* tif)
      667. {
      668. 	return (tif->tif_writeproc);
            ^
      669. }
      670. 

libtiff/tif_open.c:669:1: return from a call to TIFFGetWriteProc
      667. {
      668. 	return (tif->tif_writeproc);
      669. }
           ^
      670. 
      671. /*

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:4100:2: 
  4098. 		(tdata_t)"<< \n/Type /Catalog \n/Pages ", 
  4099. 		27);
  4100. 	buflen = snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)t2p->pdf_pages);
         ^
  4101. 	check_snprintf_ret(t2p, buflen, buffer);
  4102. 	written += t2pWriteFile(output, (tdata_t) buffer,

tools/tiff2pdf.c:4101:2: Taking false branch
  4099. 		27);
  4100. 	buflen = snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)t2p->pdf_pages);
  4101. 	check_snprintf_ret(t2p, buflen, buffer);
         ^
  4102. 	written += t2pWriteFile(output, (tdata_t) buffer,
  4103. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));

tools/tiff2pdf.c:4101:2: Taking false branch
  4099. 		27);
  4100. 	buflen = snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)t2p->pdf_pages);
  4101. 	check_snprintf_ret(t2p, buflen, buffer);
         ^
  4102. 	written += t2pWriteFile(output, (tdata_t) buffer,
  4103. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));

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

tools/tiff2pdf.c:4102:2: 
  4100. 	buflen = snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)t2p->pdf_pages);
  4101. 	check_snprintf_ret(t2p, buflen, buffer);
  4102. 	written += t2pWriteFile(output, (tdata_t) buffer,
         ^
  4103. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));
  4104. 	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:534:1: start of procedure TIFFClientdata()
      532.  * Return open file's clientdata.
      533.  */
      534. thandle_t
           ^
      535. TIFFClientdata(TIFF* tif)
      536. {

libtiff/tif_open.c:537:2: 
      535. TIFFClientdata(TIFF* tif)
      536. {
      537. 	return (tif->tif_clientdata);
            ^
      538. }
      539. 

libtiff/tif_open.c:538:1: return from a call to TIFFClientdata
      536. {
      537. 	return (tif->tif_clientdata);
      538. }
           ^
      539. 
      540. /*

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:665:1: start of procedure TIFFGetWriteProc()
      663.  * Return pointer to file write method.
      664.  */
      665. TIFFReadWriteProc
           ^
      666. TIFFGetWriteProc(TIFF* tif)
      667. {

libtiff/tif_open.c:668:2: 
      666. TIFFGetWriteProc(TIFF* tif)
      667. {
      668. 	return (tif->tif_writeproc);
            ^
      669. }
      670. 

libtiff/tif_open.c:669:1: return from a call to TIFFGetWriteProc
      667. {
      668. 	return (tif->tif_writeproc);
      669. }
           ^
      670. 
      671. /*

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:4104:2: 
  4102. 	written += t2pWriteFile(output, (tdata_t) buffer,
  4103. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));
  4104. 	written += t2pWriteFile(output, (tdata_t) " 0 R \n", 6);
         ^
  4105. 	if(t2p->pdf_fitwindow){
  4106. 		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:534:1: start of procedure TIFFClientdata()
      532.  * Return open file's clientdata.
      533.  */
      534. thandle_t
           ^
      535. TIFFClientdata(TIFF* tif)
      536. {

libtiff/tif_open.c:537:2: 
      535. TIFFClientdata(TIFF* tif)
      536. {
      537. 	return (tif->tif_clientdata);
            ^
      538. }
      539. 

libtiff/tif_open.c:538:1: return from a call to TIFFClientdata
      536. {
      537. 	return (tif->tif_clientdata);
      538. }
           ^
      539. 
      540. /*

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:665:1: start of procedure TIFFGetWriteProc()
      663.  * Return pointer to file write method.
      664.  */
      665. TIFFReadWriteProc
           ^
      666. TIFFGetWriteProc(TIFF* tif)
      667. {

libtiff/tif_open.c:668:2: 
      666. TIFFGetWriteProc(TIFF* tif)
      667. {
      668. 	return (tif->tif_writeproc);
            ^
      669. }
      670. 

libtiff/tif_open.c:669:1: return from a call to TIFFGetWriteProc
      667. {
      668. 	return (tif->tif_writeproc);
      669. }
           ^
      670. 
      671. /*

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:4105:5: Taking true branch
  4103. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));
  4104. 	written += t2pWriteFile(output, (tdata_t) " 0 R \n", 6);
  4105. 	if(t2p->pdf_fitwindow){
            ^
  4106. 		written += t2pWriteFile(output, 
  4107. 			(tdata_t) "/ViewerPreferences <</FitWindow true>>\n", 

tools/tiff2pdf.c:4106:3: 
  4104. 	written += t2pWriteFile(output, (tdata_t) " 0 R \n", 6);
  4105. 	if(t2p->pdf_fitwindow){
  4106. 		written += t2pWriteFile(output, 
          ^
  4107. 			(tdata_t) "/ViewerPreferences <</FitWindow true>>\n", 
  4108. 			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:534:1: start of procedure TIFFClientdata()
      532.  * Return open file's clientdata.
      533.  */
      534. thandle_t
           ^
      535. TIFFClientdata(TIFF* tif)
      536. {

libtiff/tif_open.c:537:2: 
      535. TIFFClientdata(TIFF* tif)
      536. {
      537. 	return (tif->tif_clientdata);
            ^
      538. }
      539. 

libtiff/tif_open.c:538:1: return from a call to TIFFClientdata
      536. {
      537. 	return (tif->tif_clientdata);
      538. }
           ^
      539. 
      540. /*

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:665:1: start of procedure TIFFGetWriteProc()
      663.  * Return pointer to file write method.
      664.  */
      665. TIFFReadWriteProc
           ^
      666. TIFFGetWriteProc(TIFF* tif)
      667. {

libtiff/tif_open.c:668:2: 
      666. TIFFGetWriteProc(TIFF* tif)
      667. {
      668. 	return (tif->tif_writeproc);
            ^
      669. }
      670. 

libtiff/tif_open.c:669:1: return from a call to TIFFGetWriteProc
      667. {
      668. 	return (tif->tif_writeproc);
      669. }
           ^
      670. 
      671. /*

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:4110:2: 
  4108. 			39);
  4109. 	}
  4110. 	written += t2pWriteFile(output, (tdata_t)">>\n", 3);
         ^
  4111. 
  4112. 	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:534:1: start of procedure TIFFClientdata()
      532.  * Return open file's clientdata.
      533.  */
      534. thandle_t
           ^
      535. TIFFClientdata(TIFF* tif)
      536. {

libtiff/tif_open.c:537:2: 
      535. TIFFClientdata(TIFF* tif)
      536. {
      537. 	return (tif->tif_clientdata);
            ^
      538. }
      539. 

libtiff/tif_open.c:538:1: return from a call to TIFFClientdata
      536. {
      537. 	return (tif->tif_clientdata);
      538. }
           ^
      539. 
      540. /*

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:665:1: start of procedure TIFFGetWriteProc()
      663.  * Return pointer to file write method.
      664.  */
      665. TIFFReadWriteProc
           ^
      666. TIFFGetWriteProc(TIFF* tif)
      667. {

libtiff/tif_open.c:668:2: 
      666. TIFFGetWriteProc(TIFF* tif)
      667. {
      668. 	return (tif->tif_writeproc);
            ^
      669. }
      670. 

libtiff/tif_open.c:669:1: return from a call to TIFFGetWriteProc
      667. {
      668. 	return (tif->tif_writeproc);
      669. }
           ^
      670. 
      671. /*

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:4112:2: 
  4110. 	written += t2pWriteFile(output, (tdata_t)">>\n", 3);
  4111. 
  4112. 	return(written);
         ^
  4113. }
  4114. 

tools/tiff2pdf.c:4113:1: return from a call to t2p_write_pdf_catalog
  4111. 
  4112. 	return(written);
  4113. }
        ^
  4114. 
  4115. /*

tools/tiff2pdf.c:5451:2: 
5449. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5450. 	written += t2p_write_pdf_catalog(t2p, output);
5451. 	written += t2p_write_pdf_obj_end(output);
       ^
5452. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5453. 	t2p->pdf_info=t2p->pdf_xrefcount;

tools/tiff2pdf.c:3820:1: start of procedure t2p_write_pdf_obj_end()
  3818. */
  3819. 
  3820. tsize_t t2p_write_pdf_obj_end(TIFF* output){
        ^
  3821. 
  3822. 	tsize_t written=0;

tools/tiff2pdf.c:3822:2: 
  3820. tsize_t t2p_write_pdf_obj_end(TIFF* output){
  3821. 
  3822. 	tsize_t written=0;
         ^
  3823. 
  3824. 	written += t2pWriteFile(output, (tdata_t) "endobj\n", 7);

tools/tiff2pdf.c:3824:2: 
  3822. 	tsize_t written=0;
  3823. 
  3824. 	written += t2pWriteFile(output, (tdata_t) "endobj\n", 7);
         ^
  3825. 
  3826. 	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:534:1: start of procedure TIFFClientdata()
      532.  * Return open file's clientdata.
      533.  */
      534. thandle_t
           ^
      535. TIFFClientdata(TIFF* tif)
      536. {

libtiff/tif_open.c:537:2: 
      535. TIFFClientdata(TIFF* tif)
      536. {
      537. 	return (tif->tif_clientdata);
            ^
      538. }
      539. 

libtiff/tif_open.c:538:1: return from a call to TIFFClientdata
      536. {
      537. 	return (tif->tif_clientdata);
      538. }
           ^
      539. 
      540. /*

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:665:1: start of procedure TIFFGetWriteProc()
      663.  * Return pointer to file write method.
      664.  */
      665. TIFFReadWriteProc
           ^
      666. TIFFGetWriteProc(TIFF* tif)
      667. {

libtiff/tif_open.c:668:2: 
      666. TIFFGetWriteProc(TIFF* tif)
      667. {
      668. 	return (tif->tif_writeproc);
            ^
      669. }
      670. 

libtiff/tif_open.c:669:1: return from a call to TIFFGetWriteProc
      667. {
      668. 	return (tif->tif_writeproc);
      669. }
           ^
      670. 
      671. /*

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:3826:2: 
  3824. 	written += t2pWriteFile(output, (tdata_t) "endobj\n", 7);
  3825. 
  3826. 	return(written);
         ^
  3827. }
  3828. 

tools/tiff2pdf.c:3827:1: return from a call to t2p_write_pdf_obj_end
  3825. 
  3826. 	return(written);
  3827. }
        ^
  3828. 
  3829. /*

tools/tiff2pdf.c:5452:2: 
5450. 	written += t2p_write_pdf_catalog(t2p, output);
5451. 	written += t2p_write_pdf_obj_end(output);
5452. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
       ^
5453. 	t2p->pdf_info=t2p->pdf_xrefcount;
5454. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);

tools/tiff2pdf.c:5453:2: 
5451. 	written += t2p_write_pdf_obj_end(output);
5452. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5453. 	t2p->pdf_info=t2p->pdf_xrefcount;
       ^
5454. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5455. 	written += t2p_write_pdf_info(t2p, input, output);

tools/tiff2pdf.c:5454:2: 
5452. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5453. 	t2p->pdf_info=t2p->pdf_xrefcount;
5454. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
       ^
5455. 	written += t2p_write_pdf_info(t2p, input, output);
5456. 	written += t2p_write_pdf_obj_end(output);

tools/tiff2pdf.c:3802:1: start of procedure t2p_write_pdf_obj_start()
  3800. */
  3801. 
  3802. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
        ^
  3803. 
  3804. 	tsize_t written=0;

tools/tiff2pdf.c:3804:2: 
  3802. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
  3803. 
  3804. 	tsize_t written=0;
         ^
  3805. 	char buffer[32];
  3806. 	int buflen=0;

tools/tiff2pdf.c:3806:2: 
  3804. 	tsize_t written=0;
  3805. 	char buffer[32];
  3806. 	int buflen=0;
         ^
  3807. 
  3808. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);

tools/tiff2pdf.c:3808:2: 
  3806. 	int buflen=0;
  3807. 
  3808. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
         ^
  3809. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3810. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );

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

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

tools/tiff2pdf.c:3810:2: 
  3808. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
  3809. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3810. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
         ^
  3811. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
  3812. 

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:534:1: start of procedure TIFFClientdata()
      532.  * Return open file's clientdata.
      533.  */
      534. thandle_t
           ^
      535. TIFFClientdata(TIFF* tif)
      536. {

libtiff/tif_open.c:537:2: 
      535. TIFFClientdata(TIFF* tif)
      536. {
      537. 	return (tif->tif_clientdata);
            ^
      538. }
      539. 

libtiff/tif_open.c:538:1: return from a call to TIFFClientdata
      536. {
      537. 	return (tif->tif_clientdata);
      538. }
           ^
      539. 
      540. /*

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:665:1: start of procedure TIFFGetWriteProc()
      663.  * Return pointer to file write method.
      664.  */
      665. TIFFReadWriteProc
           ^
      666. TIFFGetWriteProc(TIFF* tif)
      667. {

libtiff/tif_open.c:668:2: 
      666. TIFFGetWriteProc(TIFF* tif)
      667. {
      668. 	return (tif->tif_writeproc);
            ^
      669. }
      670. 

libtiff/tif_open.c:669:1: return from a call to TIFFGetWriteProc
      667. {
      668. 	return (tif->tif_writeproc);
      669. }
           ^
      670. 
      671. /*

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:3811:2: 
  3809. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3810. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
  3811. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
         ^
  3812. 
  3813. 	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:534:1: start of procedure TIFFClientdata()
      532.  * Return open file's clientdata.
      533.  */
      534. thandle_t
           ^
      535. TIFFClientdata(TIFF* tif)
      536. {

libtiff/tif_open.c:537:2: 
      535. TIFFClientdata(TIFF* tif)
      536. {
      537. 	return (tif->tif_clientdata);
            ^
      538. }
      539. 

libtiff/tif_open.c:538:1: return from a call to TIFFClientdata
      536. {
      537. 	return (tif->tif_clientdata);
      538. }
           ^
      539. 
      540. /*

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:665:1: start of procedure TIFFGetWriteProc()
      663.  * Return pointer to file write method.
      664.  */
      665. TIFFReadWriteProc
           ^
      666. TIFFGetWriteProc(TIFF* tif)
      667. {

libtiff/tif_open.c:668:2: 
      666. TIFFGetWriteProc(TIFF* tif)
      667. {
      668. 	return (tif->tif_writeproc);
            ^
      669. }
      670. 

libtiff/tif_open.c:669:1: return from a call to TIFFGetWriteProc
      667. {
      668. 	return (tif->tif_writeproc);
      669. }
           ^
      670. 
      671. /*

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:3813:2: 
  3811. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
  3812. 
  3813. 	return(written);
         ^
  3814. }
  3815. 

tools/tiff2pdf.c:3814:1: return from a call to t2p_write_pdf_obj_start
  3812. 
  3813. 	return(written);
  3814. }
        ^
  3815. 
  3816. /*

tools/tiff2pdf.c:5455:2: Skipping t2p_write_pdf_info(): empty list of specs
5453. 	t2p->pdf_info=t2p->pdf_xrefcount;
5454. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5455. 	written += t2p_write_pdf_info(t2p, input, output);
       ^
5456. 	written += t2p_write_pdf_obj_end(output);
5457. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
