tools/tiff2ps.c:2598: error: Null Dereference
  pointer `tf_buf` last assigned on line 2597 could be null and is dereferenced by call to `memset()` at line 2598, column 9.

tools/tiff2ps.c:2582:1: start of procedure PSDataBW()
2580. }
2581. 
2582. void
      ^
2583. PSDataBW(FILE* fd, TIFF* tif, uint32 w, uint32 h)
2584. {

tools/tiff2ps.c:2585:2: 
2583. PSDataBW(FILE* fd, TIFF* tif, uint32 w, uint32 h)
2584. {
2585. 	int breaklen = MAXLINE;
       ^
2586. 	unsigned char* tf_buf;
2587. 	unsigned char* cp;

tools/tiff2ps.c:2588:2: 
2586. 	unsigned char* tf_buf;
2587. 	unsigned char* cp;
2588. 	tsize_t stripsize = TIFFStripSize(tif);
       ^
2589. 	tstrip_t s;
2590. 

libtiff/tif_strip.c:209:1: start of procedure TIFFStripSize()
  207. 	return (TIFFVStripSize64(tif, rps));
  208. }
  209. tmsize_t
       ^
  210. TIFFStripSize(TIFF* tif)
  211. {

libtiff/tif_strip.c:212:2: 
  210. TIFFStripSize(TIFF* tif)
  211. {
  212. 	static const char module[] = "TIFFStripSize";
        ^
  213. 	uint64 m;
  214. 	tmsize_t n;

libtiff/tif_strip.c:215:2: Skipping TIFFStripSize64(): empty list of specs
  213. 	uint64 m;
  214. 	tmsize_t n;
  215. 	m=TIFFStripSize64(tif);
        ^
  216. 	n=(tmsize_t)m;
  217. 	if ((uint64)n!=m)

libtiff/tif_strip.c:216:2: 
  214. 	tmsize_t n;
  215. 	m=TIFFStripSize64(tif);
  216. 	n=(tmsize_t)m;
        ^
  217. 	if ((uint64)n!=m)
  218. 	{

libtiff/tif_strip.c:217:6: Taking false branch
  215. 	m=TIFFStripSize64(tif);
  216. 	n=(tmsize_t)m;
  217. 	if ((uint64)n!=m)
            ^
  218. 	{
  219. 		TIFFErrorExt(tif->tif_clientdata,module,"Integer overflow");

libtiff/tif_strip.c:222:2: 
  220. 		n=0;
  221. 	}
  222. 	return(n);
        ^
  223. }
  224. 

libtiff/tif_strip.c:223:1: return from a call to TIFFStripSize
  221. 	}
  222. 	return(n);
  223. }
       ^
  224. 
  225. /*

tools/tiff2ps.c:2593:2: 
2591. #if defined( EXP_ASCII85ENCODER )
2592. 	tsize_t	ascii85_l;		/* Length, in bytes, of ascii85_p[] data */
2593. 	uint8	*ascii85_p = 0;		/* Holds ASCII85 encoded data */
       ^
2594. #endif
2595. 

tools/tiff2ps.c:2596:2: 
2594. #endif
2595. 
2596. 	(void) w; (void) h;
       ^
2597. 	tf_buf = (unsigned char *) _TIFFmalloc(stripsize);
2598.         memset(tf_buf, 0, stripsize);

tools/tiff2ps.c:2596:12: 
2594. #endif
2595. 
2596. 	(void) w; (void) h;
                 ^
2597. 	tf_buf = (unsigned char *) _TIFFmalloc(stripsize);
2598.         memset(tf_buf, 0, stripsize);

tools/tiff2ps.c:2597:2: 
2595. 
2596. 	(void) w; (void) h;
2597. 	tf_buf = (unsigned char *) _TIFFmalloc(stripsize);
       ^
2598.         memset(tf_buf, 0, stripsize);
2599. 	if (tf_buf == NULL) {

libtiff/tif_unix.c:253:1: start of procedure _TIFFmalloc()
  251. #endif
  252. 
  253. void*
       ^
  254. _TIFFmalloc(tmsize_t s)
  255. {

libtiff/tif_unix.c:256:2: 
  254. _TIFFmalloc(tmsize_t s)
  255. {
  256. 	return (malloc((size_t) s));
        ^
  257. }
  258. 

libtiff/tif_unix.c:257:1: return from a call to _TIFFmalloc
  255. {
  256. 	return (malloc((size_t) s));
  257. }
       ^
  258. 
  259. void

tools/tiff2ps.c:2598:9: 
2596. 	(void) w; (void) h;
2597. 	tf_buf = (unsigned char *) _TIFFmalloc(stripsize);
2598.         memset(tf_buf, 0, stripsize);
              ^
2599. 	if (tf_buf == NULL) {
2600. 		TIFFError(filename, "No space for scanline buffer");
