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

tools/tiff2pdf.c:5372:1: start of procedure t2p_write_pdf()
5370. */
5371. 
5372. tsize_t t2p_write_pdf(T2P* t2p, TIFF* input, TIFF* output){
      ^
5373. 
5374. 	tsize_t written=0;

tools/tiff2pdf.c:5374:2: 
5372. tsize_t t2p_write_pdf(T2P* t2p, TIFF* input, TIFF* output){
5373. 
5374. 	tsize_t written=0;
       ^
5375. 	ttile_t i2=0;
5376. 	tsize_t streamlen=0;

tools/tiff2pdf.c:5375:2: 
5373. 
5374. 	tsize_t written=0;
5375. 	ttile_t i2=0;
       ^
5376. 	tsize_t streamlen=0;
5377. 	uint16 i=0;

tools/tiff2pdf.c:5376:2: 
5374. 	tsize_t written=0;
5375. 	ttile_t i2=0;
5376. 	tsize_t streamlen=0;
       ^
5377. 	uint16 i=0;
5378. 

tools/tiff2pdf.c:5377:2: 
5375. 	ttile_t i2=0;
5376. 	tsize_t streamlen=0;
5377. 	uint16 i=0;
       ^
5378. 
5379. 	t2p_read_tiff_init(t2p, input);

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

tools/tiff2pdf.c:5380:5: Taking false branch
5378. 
5379. 	t2p_read_tiff_init(t2p, input);
5380. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
          ^
5381. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
5382. 	if(t2p->pdf_xrefoffsets==NULL){

tools/tiff2pdf.c:5381:46: Condition is true
5379. 	t2p_read_tiff_init(t2p, input);
5380. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5381. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
                                                   ^
5382. 	if(t2p->pdf_xrefoffsets==NULL){
5383. 		TIFFError(

tools/tiff2pdf.c:5381:46: Condition is true
5379. 	t2p_read_tiff_init(t2p, input);
5380. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5381. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
                                                   ^
5382. 	if(t2p->pdf_xrefoffsets==NULL){
5383. 		TIFFError(

tools/tiff2pdf.c:5381:2: 
5379. 	t2p_read_tiff_init(t2p, input);
5380. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5381. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
       ^
5382. 	if(t2p->pdf_xrefoffsets==NULL){
5383. 		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:5382:5: Taking false branch
5380. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5381. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );
5382. 	if(t2p->pdf_xrefoffsets==NULL){
          ^
5383. 		TIFFError(
5384. 			TIFF2PDF_MODULE, 

tools/tiff2pdf.c:5390:2: 
5388. 		return(written);
5389. 	}
5390. 	t2p->pdf_xrefcount=0;
       ^
5391. 	t2p->pdf_catalog=1;
5392. 	t2p->pdf_info=2;

tools/tiff2pdf.c:5391:2: 
5389. 	}
5390. 	t2p->pdf_xrefcount=0;
5391. 	t2p->pdf_catalog=1;
       ^
5392. 	t2p->pdf_info=2;
5393. 	t2p->pdf_pages=3;

tools/tiff2pdf.c:5392:2: 
5390. 	t2p->pdf_xrefcount=0;
5391. 	t2p->pdf_catalog=1;
5392. 	t2p->pdf_info=2;
       ^
5393. 	t2p->pdf_pages=3;
5394. 	written += t2p_write_pdf_header(t2p, output);

tools/tiff2pdf.c:5393:2: 
5391. 	t2p->pdf_catalog=1;
5392. 	t2p->pdf_info=2;
5393. 	t2p->pdf_pages=3;
       ^
5394. 	written += t2p_write_pdf_header(t2p, output);
5395. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;

tools/tiff2pdf.c:5394:2: 
5392. 	t2p->pdf_info=2;
5393. 	t2p->pdf_pages=3;
5394. 	written += t2p_write_pdf_header(t2p, output);
       ^
5395. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5396. 	t2p->pdf_catalog=t2p->pdf_xrefcount;

tools/tiff2pdf.c:3730:1: start of procedure t2p_write_pdf_header()
  3728. */
  3729. 
  3730. tsize_t t2p_write_pdf_header(T2P* t2p, TIFF* output){
        ^
  3731. 
  3732. 	tsize_t written=0;

tools/tiff2pdf.c:3732:2: 
  3730. tsize_t t2p_write_pdf_header(T2P* t2p, TIFF* output){
  3731. 
  3732. 	tsize_t written=0;
         ^
  3733. 	char buffer[16];
  3734. 	int buflen=0;

tools/tiff2pdf.c:3734:2: 
  3732. 	tsize_t written=0;
  3733. 	char buffer[16];
  3734. 	int buflen=0;
         ^
  3735. 	
  3736. 	buflen = snprintf(buffer, sizeof(buffer), "%%PDF-%u.%u ",

tools/tiff2pdf.c:3736:2: 
  3734. 	int buflen=0;
  3735. 	
  3736. 	buflen = snprintf(buffer, sizeof(buffer), "%%PDF-%u.%u ",
         ^
  3737. 			  t2p->pdf_majorversion&0xff,
  3738. 			  t2p->pdf_minorversion&0xff);

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

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

tools/tiff2pdf.c:3740:2: 
  3738. 			  t2p->pdf_minorversion&0xff);
  3739. 	check_snprintf_ret(t2p, buflen, buffer);
  3740. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen);
         ^
  3741. 	written += t2pWriteFile(output, (tdata_t)"\n%\342\343\317\323\n", 7);
  3742. 

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:3741:2: 
  3739. 	check_snprintf_ret(t2p, buflen, buffer);
  3740. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen);
  3741. 	written += t2pWriteFile(output, (tdata_t)"\n%\342\343\317\323\n", 7);
         ^
  3742. 
  3743. 	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:3743:2: 
  3741. 	written += t2pWriteFile(output, (tdata_t)"\n%\342\343\317\323\n", 7);
  3742. 
  3743. 	return(written);
         ^
  3744. }
  3745. 

tools/tiff2pdf.c:3744:1: return from a call to t2p_write_pdf_header
  3742. 
  3743. 	return(written);
  3744. }
        ^
  3745. 
  3746. /*

tools/tiff2pdf.c:5395:2: 
5393. 	t2p->pdf_pages=3;
5394. 	written += t2p_write_pdf_header(t2p, output);
5395. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
       ^
5396. 	t2p->pdf_catalog=t2p->pdf_xrefcount;
5397. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);

tools/tiff2pdf.c:5396:2: 
5394. 	written += t2p_write_pdf_header(t2p, output);
5395. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5396. 	t2p->pdf_catalog=t2p->pdf_xrefcount;
       ^
5397. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5398. 	written += t2p_write_pdf_catalog(t2p, output);

tools/tiff2pdf.c:5397:2: 
5395. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5396. 	t2p->pdf_catalog=t2p->pdf_xrefcount;
5397. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
       ^
5398. 	written += t2p_write_pdf_catalog(t2p, output);
5399. 	written += t2p_write_pdf_obj_end(output);

tools/tiff2pdf.c:3750:1: start of procedure t2p_write_pdf_obj_start()
  3748. */
  3749. 
  3750. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
        ^
  3751. 
  3752. 	tsize_t written=0;

tools/tiff2pdf.c:3752:2: 
  3750. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
  3751. 
  3752. 	tsize_t written=0;
         ^
  3753. 	char buffer[32];
  3754. 	int buflen=0;

tools/tiff2pdf.c:3754:2: 
  3752. 	tsize_t written=0;
  3753. 	char buffer[32];
  3754. 	int buflen=0;
         ^
  3755. 
  3756. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);

tools/tiff2pdf.c:3756:2: 
  3754. 	int buflen=0;
  3755. 
  3756. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
         ^
  3757. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3758. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );

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

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

tools/tiff2pdf.c:3758:2: 
  3756. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
  3757. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3758. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
         ^
  3759. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
  3760. 

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:3759:2: 
  3757. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3758. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
  3759. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
         ^
  3760. 
  3761. 	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:3761:2: 
  3759. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
  3760. 
  3761. 	return(written);
         ^
  3762. }
  3763. 

tools/tiff2pdf.c:3762:1: return from a call to t2p_write_pdf_obj_start
  3760. 
  3761. 	return(written);
  3762. }
        ^
  3763. 
  3764. /*

tools/tiff2pdf.c:5398:2: 
5396. 	t2p->pdf_catalog=t2p->pdf_xrefcount;
5397. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5398. 	written += t2p_write_pdf_catalog(t2p, output);
       ^
5399. 	written += t2p_write_pdf_obj_end(output);
5400. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;

tools/tiff2pdf.c:4039:1: start of procedure t2p_write_pdf_catalog()
  4037.  */
  4038. 
  4039. tsize_t t2p_write_pdf_catalog(T2P* t2p, TIFF* output)
        ^
  4040. {
  4041. 	tsize_t written = 0;

tools/tiff2pdf.c:4041:2: 
  4039. tsize_t t2p_write_pdf_catalog(T2P* t2p, TIFF* output)
  4040. {
  4041. 	tsize_t written = 0;
         ^
  4042. 	char buffer[32];
  4043. 	int buflen = 0;

tools/tiff2pdf.c:4043:2: 
  4041. 	tsize_t written = 0;
  4042. 	char buffer[32];
  4043. 	int buflen = 0;
         ^
  4044. 
  4045. 	written += t2pWriteFile(output, 

tools/tiff2pdf.c:4045:2: 
  4043. 	int buflen = 0;
  4044. 
  4045. 	written += t2pWriteFile(output, 
         ^
  4046. 		(tdata_t)"<< \n/Type /Catalog \n/Pages ", 
  4047. 		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:4048:2: 
  4046. 		(tdata_t)"<< \n/Type /Catalog \n/Pages ", 
  4047. 		27);
  4048. 	buflen = snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)t2p->pdf_pages);
         ^
  4049. 	check_snprintf_ret(t2p, buflen, buffer);
  4050. 	written += t2pWriteFile(output, (tdata_t) buffer,

tools/tiff2pdf.c:4049:2: Taking false branch
  4047. 		27);
  4048. 	buflen = snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)t2p->pdf_pages);
  4049. 	check_snprintf_ret(t2p, buflen, buffer);
         ^
  4050. 	written += t2pWriteFile(output, (tdata_t) buffer,
  4051. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));

tools/tiff2pdf.c:4049:2: Taking false branch
  4047. 		27);
  4048. 	buflen = snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)t2p->pdf_pages);
  4049. 	check_snprintf_ret(t2p, buflen, buffer);
         ^
  4050. 	written += t2pWriteFile(output, (tdata_t) buffer,
  4051. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));

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

tools/tiff2pdf.c:4050:2: 
  4048. 	buflen = snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)t2p->pdf_pages);
  4049. 	check_snprintf_ret(t2p, buflen, buffer);
  4050. 	written += t2pWriteFile(output, (tdata_t) buffer,
         ^
  4051. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));
  4052. 	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:4052:2: 
  4050. 	written += t2pWriteFile(output, (tdata_t) buffer,
  4051. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));
  4052. 	written += t2pWriteFile(output, (tdata_t) " 0 R \n", 6);
         ^
  4053. 	if(t2p->pdf_fitwindow){
  4054. 		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:4053:5: Taking true branch
  4051. 				TIFFmin((size_t)buflen, sizeof(buffer) - 1));
  4052. 	written += t2pWriteFile(output, (tdata_t) " 0 R \n", 6);
  4053. 	if(t2p->pdf_fitwindow){
            ^
  4054. 		written += t2pWriteFile(output, 
  4055. 			(tdata_t) "/ViewerPreferences <</FitWindow true>>\n", 

tools/tiff2pdf.c:4054:3: 
  4052. 	written += t2pWriteFile(output, (tdata_t) " 0 R \n", 6);
  4053. 	if(t2p->pdf_fitwindow){
  4054. 		written += t2pWriteFile(output, 
          ^
  4055. 			(tdata_t) "/ViewerPreferences <</FitWindow true>>\n", 
  4056. 			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:4058:2: 
  4056. 			39);
  4057. 	}
  4058. 	written += t2pWriteFile(output, (tdata_t)">>\n", 3);
         ^
  4059. 
  4060. 	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:4060:2: 
  4058. 	written += t2pWriteFile(output, (tdata_t)">>\n", 3);
  4059. 
  4060. 	return(written);
         ^
  4061. }
  4062. 

tools/tiff2pdf.c:4061:1: return from a call to t2p_write_pdf_catalog
  4059. 
  4060. 	return(written);
  4061. }
        ^
  4062. 
  4063. /*

tools/tiff2pdf.c:5399:2: 
5397. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5398. 	written += t2p_write_pdf_catalog(t2p, output);
5399. 	written += t2p_write_pdf_obj_end(output);
       ^
5400. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5401. 	t2p->pdf_info=t2p->pdf_xrefcount;

tools/tiff2pdf.c:3768:1: start of procedure t2p_write_pdf_obj_end()
  3766. */
  3767. 
  3768. tsize_t t2p_write_pdf_obj_end(TIFF* output){
        ^
  3769. 
  3770. 	tsize_t written=0;

tools/tiff2pdf.c:3770:2: 
  3768. tsize_t t2p_write_pdf_obj_end(TIFF* output){
  3769. 
  3770. 	tsize_t written=0;
         ^
  3771. 
  3772. 	written += t2pWriteFile(output, (tdata_t) "endobj\n", 7);

tools/tiff2pdf.c:3772:2: 
  3770. 	tsize_t written=0;
  3771. 
  3772. 	written += t2pWriteFile(output, (tdata_t) "endobj\n", 7);
         ^
  3773. 
  3774. 	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:3774:2: 
  3772. 	written += t2pWriteFile(output, (tdata_t) "endobj\n", 7);
  3773. 
  3774. 	return(written);
         ^
  3775. }
  3776. 

tools/tiff2pdf.c:3775:1: return from a call to t2p_write_pdf_obj_end
  3773. 
  3774. 	return(written);
  3775. }
        ^
  3776. 
  3777. /*

tools/tiff2pdf.c:5400:2: 
5398. 	written += t2p_write_pdf_catalog(t2p, output);
5399. 	written += t2p_write_pdf_obj_end(output);
5400. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
       ^
5401. 	t2p->pdf_info=t2p->pdf_xrefcount;
5402. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);

tools/tiff2pdf.c:5401:2: 
5399. 	written += t2p_write_pdf_obj_end(output);
5400. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5401. 	t2p->pdf_info=t2p->pdf_xrefcount;
       ^
5402. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5403. 	written += t2p_write_pdf_info(t2p, input, output);

tools/tiff2pdf.c:5402:2: 
5400. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
5401. 	t2p->pdf_info=t2p->pdf_xrefcount;
5402. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
       ^
5403. 	written += t2p_write_pdf_info(t2p, input, output);
5404. 	written += t2p_write_pdf_obj_end(output);

tools/tiff2pdf.c:3750:1: start of procedure t2p_write_pdf_obj_start()
  3748. */
  3749. 
  3750. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
        ^
  3751. 
  3752. 	tsize_t written=0;

tools/tiff2pdf.c:3752:2: 
  3750. tsize_t t2p_write_pdf_obj_start(uint32 number, TIFF* output){
  3751. 
  3752. 	tsize_t written=0;
         ^
  3753. 	char buffer[32];
  3754. 	int buflen=0;

tools/tiff2pdf.c:3754:2: 
  3752. 	tsize_t written=0;
  3753. 	char buffer[32];
  3754. 	int buflen=0;
         ^
  3755. 
  3756. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);

tools/tiff2pdf.c:3756:2: 
  3754. 	int buflen=0;
  3755. 
  3756. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
         ^
  3757. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3758. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );

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

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

tools/tiff2pdf.c:3758:2: 
  3756. 	buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)number);
  3757. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3758. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
         ^
  3759. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
  3760. 

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:3759:2: 
  3757. 	check_snprintf_ret((T2P*)NULL, buflen, buffer);
  3758. 	written += t2pWriteFile(output, (tdata_t) buffer, buflen );
  3759. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
         ^
  3760. 
  3761. 	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:3761:2: 
  3759. 	written += t2pWriteFile(output, (tdata_t) " 0 obj\n", 7);
  3760. 
  3761. 	return(written);
         ^
  3762. }
  3763. 

tools/tiff2pdf.c:3762:1: return from a call to t2p_write_pdf_obj_start
  3760. 
  3761. 	return(written);
  3762. }
        ^
  3763. 
  3764. /*

tools/tiff2pdf.c:5403:2: Skipping t2p_write_pdf_info(): empty list of specs
5401. 	t2p->pdf_info=t2p->pdf_xrefcount;
5402. 	written += t2p_write_pdf_obj_start(t2p->pdf_xrefcount, output);
5403. 	written += t2p_write_pdf_info(t2p, input, output);
       ^
5404. 	written += t2p_write_pdf_obj_end(output);
5405. 	t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;
