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

tools/tiff2pdf.c:5406:1: start of procedure t2p_write_pdf()
5404. */
5405. 
5406. tsize_t t2p_write_pdf(T2P* t2p, TIFF* input, TIFF* output){
      ^
5407. 
5408. 	tsize_t written=0;

tools/tiff2pdf.c:5408:2: 
5406. tsize_t t2p_write_pdf(T2P* t2p, TIFF* input, TIFF* output){
5407. 
5408. 	tsize_t written=0;
       ^
5409. 	ttile_t i2=0;
5410. 	tsize_t streamlen=0;

tools/tiff2pdf.c:5409:2: 
5407. 
5408. 	tsize_t written=0;
5409. 	ttile_t i2=0;
       ^
5410. 	tsize_t streamlen=0;
5411. 	uint16 i=0;

tools/tiff2pdf.c:5410:2: 
5408. 	tsize_t written=0;
5409. 	ttile_t i2=0;
5410. 	tsize_t streamlen=0;
       ^
5411. 	uint16 i=0;
5412. 

tools/tiff2pdf.c:5411:2: 
5409. 	ttile_t i2=0;
5410. 	tsize_t streamlen=0;
5411. 	uint16 i=0;
       ^
5412. 
5413. 	t2p_read_tiff_init(t2p, input);

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

tools/tiff2pdf.c:5414:5: Taking false branch
5412. 
5413. 	t2p_read_tiff_init(t2p, input);
5414. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
          ^
5415. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
5416. 	if(t2p->pdf_xrefoffsets==NULL){

tools/tiff2pdf.c:5415:46: Condition is true
5413. 	t2p_read_tiff_init(t2p, input);
5414. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5415. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
                                                   ^
5416. 	if(t2p->pdf_xrefoffsets==NULL){
5417. 		TIFFError(

tools/tiff2pdf.c:5415:46: Condition is true
5413. 	t2p_read_tiff_init(t2p, input);
5414. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5415. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
                                                   ^
5416. 	if(t2p->pdf_xrefoffsets==NULL){
5417. 		TIFFError(

tools/tiff2pdf.c:5415:2: 
5413. 	t2p_read_tiff_init(t2p, input);
5414. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5415. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
       ^
5416. 	if(t2p->pdf_xrefoffsets==NULL){
5417. 		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:5416:5: Taking false branch
5414. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5415. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
5416. 	if(t2p->pdf_xrefoffsets==NULL){
          ^
5417. 		TIFFError(
5418. 			TIFF2PDF_MODULE, 

tools/tiff2pdf.c:5424:2: 
5422. 		return(written);
5423. 	}
5424. 	t2p->pdf_xrefcount=0;
       ^
5425. 	t2p->pdf_catalog=1;
5426. 	t2p->pdf_info=2;

tools/tiff2pdf.c:5425:2: 
5423. 	}
5424. 	t2p->pdf_xrefcount=0;
5425. 	t2p->pdf_catalog=1;
       ^
5426. 	t2p->pdf_info=2;
5427. 	t2p->pdf_pages=3;

tools/tiff2pdf.c:5426:2: 
5424. 	t2p->pdf_xrefcount=0;
5425. 	t2p->pdf_catalog=1;
5426. 	t2p->pdf_info=2;
       ^
5427. 	t2p->pdf_pages=3;
5428. 	written += t2p_write_pdf_header(t2p, output);

tools/tiff2pdf.c:5427:2: 
5425. 	t2p->pdf_catalog=1;
5426. 	t2p->pdf_info=2;
5427. 	t2p->pdf_pages=3;
       ^
5428. 	written += t2p_write_pdf_header(t2p, output);
5429. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;

tools/tiff2pdf.c:5428:2: 
5426. 	t2p->pdf_info=2;
5427. 	t2p->pdf_pages=3;
5428. 	written += t2p_write_pdf_header(t2p, output);
       ^
5429. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5430. 	t2p->pdf_catalog=t2p->pdf_xrefcount;

tools/tiff2pdf.c:3764:1: start of procedure t2p_write_pdf_header()
  3762. */
  3763. 
  3764. tsize_t t2p_write_pdf_header(T2P* t2p, TIFF* output){
        ^
  3765. 
  3766. 	tsize_t written=0;

tools/tiff2pdf.c:3766:2: 
  3764. tsize_t t2p_write_pdf_header(T2P* t2p, TIFF* output){
  3765. 
  3766. 	tsize_t written=0;
         ^
  3767. 	char buffer[16];
  3768. 	int buflen=0;

tools/tiff2pdf.c:3768:2: 
  3766. 	tsize_t written=0;
  3767. 	char buffer[16];
  3768. 	int buflen=0;
         ^
  3769. 	
  3770. 	buflen = snprintf(buffer, sizeof(buffer), "%%PDF-%u.%u ",

tools/tiff2pdf.c:3770:2: 
  3768. 	int buflen=0;
  3769. 	
  3770. 	buflen = snprintf(buffer, sizeof(buffer), "%%PDF-%u.%u ",
         ^
  3771. 			  t2p->pdf_majorversion&0xff,
  3772. 			  t2p->pdf_minorversion&0xff);

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

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

tools/tiff2pdf.c:3774:2: 
  3772. 			  t2p->pdf_minorversion&0xff);
  3773. 	check_snprintf_ret(t2p, buflen, buffer);
  3774. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen);
         ^
  3775. 	written += t2pWriteFile(output, (tdata_t)"\n%\342\343\317\323\n", 7);
  3776. 

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:3775:2: 
  3773. 	check_snprintf_ret(t2p, buflen, buffer);
  3774. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen);
  3775. 	written += t2pWriteFile(output, (tdata_t)"\n%\342\343\317\323\n", 7);
         ^
  3776. 
  3777. 	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:3777:2: 
  3775. 	written += t2pWriteFile(output, (tdata_t)"\n%\342\343\317\323\n", 7);
  3776. 
  3777. 	return(written);
         ^
  3778. }
  3779. 

tools/tiff2pdf.c:3778:1: return from a call to t2p_write_pdf_header
  3776. 
  3777. 	return(written);
  3778. }
        ^
  3779. 
  3780. /*

tools/tiff2pdf.c:5429:2: 
5427. 	t2p->pdf_pages=3;
5428. 	written += t2p_write_pdf_header(t2p, output);
5429. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
       ^
5430. 	t2p->pdf_catalog=t2p->pdf_xrefcount;
5431. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);

tools/tiff2pdf.c:5430:2: 
5428. 	written += t2p_write_pdf_header(t2p, output);
5429. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5430. 	t2p->pdf_catalog=t2p->pdf_xrefcount;
       ^
5431. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5432. 	written += t2p_write_pdf_catalog(t2p, output);

tools/tiff2pdf.c:5431:2: 
5429. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5430. 	t2p->pdf_catalog=t2p->pdf_xrefcount;
5431. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
       ^
5432. 	written += t2p_write_pdf_catalog(t2p, output);
5433. 	written += t2p_write_pdf_obj_end(output);

tools/tiff2pdf.c:3784:1: start of procedure t2p_write_pdf_obj_start()
  3782. */
  3783. 
  3784. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
        ^
  3785. 
  3786. 	tsize_t written=0;

tools/tiff2pdf.c:3786:2: 
  3784. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
  3785. 
  3786. 	tsize_t written=0;
         ^
  3787. 	char buffer[32];
  3788. 	int buflen=0;

tools/tiff2pdf.c:3788:2: 
  3786. 	tsize_t written=0;
  3787. 	char buffer[32];
  3788. 	int buflen=0;
         ^
  3789. 
  3790. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);

tools/tiff2pdf.c:3790:2: 
  3788. 	int buflen=0;
  3789. 
  3790. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
         ^
  3791. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3792. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );

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

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

tools/tiff2pdf.c:3792:2: 
  3790. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
  3791. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3792. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
         ^
  3793. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\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: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:3793:2: 
  3791. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3792. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
  3793. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
         ^
  3794. 
  3795. 	return(written);

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

tools/tiff2pdf.c:376:2: 
    374. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    375. {
    376. 	thandle_t client = TIFFClientdata(tif);
          ^
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    378. 	if (proc)

libtiff/tif_open.c:536:1: start of procedure TIFFClientdata()
      534.  * Return open file's clientdata.
      535.  */
      536. thandle_t
           ^
      537. TIFFClientdata(TIFF* tif)
      538. {

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

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

tools/tiff2pdf.c:377:2: 
    375. {
    376. 	thandle_t client = TIFFClientdata(tif);
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    378. 	if (proc)
    379. 		return proc(client, data, size);

libtiff/tif_open.c:667:1: start of procedure TIFFGetWriteProc()
      665.  * Return pointer to file write method.
      666.  */
      667. TIFFReadWriteProc
           ^
      668. TIFFGetWriteProc(TIFF* tif)
      669. {

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

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

tools/tiff2pdf.c:378:6: Taking false branch
    376. 	thandle_t client = TIFFClientdata(tif);
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    378. 	if (proc)
              ^
    379. 		return proc(client, data, size);
    380. 	return -1;

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

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

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

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

tools/tiff2pdf.c:5432:2: 
5430. 	t2p->pdf_catalog=t2p->pdf_xrefcount;
5431. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5432. 	written += t2p_write_pdf_catalog(t2p, output);
       ^
5433. 	written += t2p_write_pdf_obj_end(output);
5434. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;

tools/tiff2pdf.c:4073:1: start of procedure t2p_write_pdf_catalog()
  4071.  */
  4072. 
  4073. tsize_t t2p_write_pdf_catalog(T2P* t2p, TIFF* output)
        ^
  4074. {
  4075. 	tsize_t written = 0;

tools/tiff2pdf.c:4075:2: 
  4073. tsize_t t2p_write_pdf_catalog(T2P* t2p, TIFF* output)
  4074. {
  4075. 	tsize_t written = 0;
         ^
  4076. 	char buffer[32];
  4077. 	int buflen = 0;

tools/tiff2pdf.c:4077:2: 
  4075. 	tsize_t written = 0;
  4076. 	char buffer[32];
  4077. 	int buflen = 0;
         ^
  4078. 
  4079. 	written += t2pWriteFile(output, 

tools/tiff2pdf.c:4079:2: 
  4077. 	int buflen = 0;
  4078. 
  4079. 	written += t2pWriteFile(output, 
         ^
  4080. 		(tdata_t)"<< \n/Type /Catalog \n/Pages ", 
  4081. 		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:4082:2: 
  4080. 		(tdata_t)"<< \n/Type /Catalog \n/Pages ", 
  4081. 		27);
  4082. 	buflen = snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)t2p->pdf_pages);
         ^
  4083. 	check_snprintf_ret(t2p, buflen, buffer);
  4084. 	written += t2pWriteFile(output, (tdata_t) buffer,

tools/tiff2pdf.c:4083:2: Taking false branch
  4081. 		27);
  4082. 	buflen = snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)t2p->pdf_pages);
  4083. 	check_snprintf_ret(t2p, buflen, buffer);
         ^
  4084. 	written += t2pWriteFile(output, (tdata_t) buffer,
  4085. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));

tools/tiff2pdf.c:4083:2: Taking false branch
  4081. 		27);
  4082. 	buflen = snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)t2p->pdf_pages);
  4083. 	check_snprintf_ret(t2p, buflen, buffer);
         ^
  4084. 	written += t2pWriteFile(output, (tdata_t) buffer,
  4085. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));

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

tools/tiff2pdf.c:4084:2: 
  4082. 	buflen = snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)t2p->pdf_pages);
  4083. 	check_snprintf_ret(t2p, buflen, buffer);
  4084. 	written += t2pWriteFile(output, (tdata_t) buffer,
         ^
  4085. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));
  4086. 	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:4086:2: 
  4084. 	written += t2pWriteFile(output, (tdata_t) buffer,
  4085. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));
  4086. 	written += t2pWriteFile(output, (tdata_t) " 0 R \n", 6);
         ^
  4087. 	if(t2p->pdf_fitwindow){
  4088. 		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:4087:5: Taking true branch
  4085. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));
  4086. 	written += t2pWriteFile(output, (tdata_t) " 0 R \n", 6);
  4087. 	if(t2p->pdf_fitwindow){
            ^
  4088. 		written += t2pWriteFile(output, 
  4089. 			(tdata_t) "/ViewerPreferences <</FitWindow true>>\n", 

tools/tiff2pdf.c:4088:3: 
  4086. 	written += t2pWriteFile(output, (tdata_t) " 0 R \n", 6);
  4087. 	if(t2p->pdf_fitwindow){
  4088. 		written += t2pWriteFile(output, 
          ^
  4089. 			(tdata_t) "/ViewerPreferences <</FitWindow true>>\n", 
  4090. 			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:4092:2: 
  4090. 			39);
  4091. 	}
  4092. 	written += t2pWriteFile(output, (tdata_t)">>\n", 3);
         ^
  4093. 
  4094. 	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:4094:2: 
  4092. 	written += t2pWriteFile(output, (tdata_t)">>\n", 3);
  4093. 
  4094. 	return(written);
         ^
  4095. }
  4096. 

tools/tiff2pdf.c:4095:1: return from a call to t2p_write_pdf_catalog
  4093. 
  4094. 	return(written);
  4095. }
        ^
  4096. 
  4097. /*

tools/tiff2pdf.c:5433:2: 
5431. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5432. 	written += t2p_write_pdf_catalog(t2p, output);
5433. 	written += t2p_write_pdf_obj_end(output);
       ^
5434. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5435. 	t2p->pdf_info=t2p->pdf_xrefcount;

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

tools/tiff2pdf.c:3804:2: 
  3802. tsize_t t2p_write_pdf_obj_end(TIFF* output){
  3803. 
  3804. 	tsize_t written=0;
         ^
  3805. 
  3806. 	written += t2pWriteFile(output, (tdata_t) "endobj\n", 7);

tools/tiff2pdf.c:3806:2: 
  3804. 	tsize_t written=0;
  3805. 
  3806. 	written += t2pWriteFile(output, (tdata_t) "endobj\n", 7);
         ^
  3807. 
  3808. 	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:3808:2: 
  3806. 	written += t2pWriteFile(output, (tdata_t) "endobj\n", 7);
  3807. 
  3808. 	return(written);
         ^
  3809. }
  3810. 

tools/tiff2pdf.c:3809:1: return from a call to t2p_write_pdf_obj_end
  3807. 
  3808. 	return(written);
  3809. }
        ^
  3810. 
  3811. /*

tools/tiff2pdf.c:5434:2: 
5432. 	written += t2p_write_pdf_catalog(t2p, output);
5433. 	written += t2p_write_pdf_obj_end(output);
5434. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
       ^
5435. 	t2p->pdf_info=t2p->pdf_xrefcount;
5436. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);

tools/tiff2pdf.c:5435:2: 
5433. 	written += t2p_write_pdf_obj_end(output);
5434. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5435. 	t2p->pdf_info=t2p->pdf_xrefcount;
       ^
5436. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5437. 	written += t2p_write_pdf_info(t2p, input, output);

tools/tiff2pdf.c:5436:2: 
5434. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5435. 	t2p->pdf_info=t2p->pdf_xrefcount;
5436. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
       ^
5437. 	written += t2p_write_pdf_info(t2p, input, output);
5438. 	written += t2p_write_pdf_obj_end(output);

tools/tiff2pdf.c:3784:1: start of procedure t2p_write_pdf_obj_start()
  3782. */
  3783. 
  3784. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
        ^
  3785. 
  3786. 	tsize_t written=0;

tools/tiff2pdf.c:3786:2: 
  3784. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
  3785. 
  3786. 	tsize_t written=0;
         ^
  3787. 	char buffer[32];
  3788. 	int buflen=0;

tools/tiff2pdf.c:3788:2: 
  3786. 	tsize_t written=0;
  3787. 	char buffer[32];
  3788. 	int buflen=0;
         ^
  3789. 
  3790. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);

tools/tiff2pdf.c:3790:2: 
  3788. 	int buflen=0;
  3789. 
  3790. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
         ^
  3791. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3792. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );

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

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

tools/tiff2pdf.c:3792:2: 
  3790. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
  3791. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3792. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
         ^
  3793. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\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: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:3793:2: 
  3791. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3792. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
  3793. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
         ^
  3794. 
  3795. 	return(written);

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

tools/tiff2pdf.c:376:2: 
    374. t2pWriteFile(TIFF *tif, tdata_t data, tmsize_t size)
    375. {
    376. 	thandle_t client = TIFFClientdata(tif);
          ^
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    378. 	if (proc)

libtiff/tif_open.c:536:1: start of procedure TIFFClientdata()
      534.  * Return open file's clientdata.
      535.  */
      536. thandle_t
           ^
      537. TIFFClientdata(TIFF* tif)
      538. {

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

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

tools/tiff2pdf.c:377:2: 
    375. {
    376. 	thandle_t client = TIFFClientdata(tif);
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
          ^
    378. 	if (proc)
    379. 		return proc(client, data, size);

libtiff/tif_open.c:667:1: start of procedure TIFFGetWriteProc()
      665.  * Return pointer to file write method.
      666.  */
      667. TIFFReadWriteProc
           ^
      668. TIFFGetWriteProc(TIFF* tif)
      669. {

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

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

tools/tiff2pdf.c:378:6: Taking false branch
    376. 	thandle_t client = TIFFClientdata(tif);
    377. 	TIFFReadWriteProc proc = TIFFGetWriteProc(tif);
    378. 	if (proc)
              ^
    379. 		return proc(client, data, size);
    380. 	return -1;

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

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

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

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

tools/tiff2pdf.c:5437:2: Skipping t2p_write_pdf_info(): empty list of specs
5435. 	t2p->pdf_info=t2p->pdf_xrefcount;
5436. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5437. 	written += t2p_write_pdf_info(t2p, input, output);
       ^
5438. 	written += t2p_write_pdf_obj_end(output);
5439. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
