tools/tiffcrop.c:7338: error: Null Dereference
  pointer `sect_buff` last assigned on line 7336 could be null and is dereferenced by call to `_TIFFmemset()` at line 7338, column 5.

tools/tiffcrop.c:7325:1: start of procedure createImageSection()
7323. 
7324. /* Create a buffer to write one section at a time */
7325. static int
      ^
7326. createImageSection(uint32 sectsize, unsigned char **sect_buff_ptr)
7327.   {

tools/tiffcrop.c:7328:3: 
7326. createImageSection(uint32 sectsize, unsigned char **sect_buff_ptr)
7327.   {
7328.   unsigned  char *sect_buff = NULL;
        ^
7329.   unsigned  char *new_buff  = NULL;
7330.   static    uint32  prev_sectsize = 0;

tools/tiffcrop.c:7329:3: 
7327.   {
7328.   unsigned  char *sect_buff = NULL;
7329.   unsigned  char *new_buff  = NULL;
        ^
7330.   static    uint32  prev_sectsize = 0;
7331.   

tools/tiffcrop.c:7330:3: 
7328.   unsigned  char *sect_buff = NULL;
7329.   unsigned  char *new_buff  = NULL;
7330.   static    uint32  prev_sectsize = 0;
        ^
7331.   
7332.   sect_buff = *sect_buff_ptr;

tools/tiffcrop.c:7332:3: 
7330.   static    uint32  prev_sectsize = 0;
7331.   
7332.   sect_buff = *sect_buff_ptr;
        ^
7333. 
7334.   if (!sect_buff)

tools/tiffcrop.c:7334:8: Taking true branch
7332.   sect_buff = *sect_buff_ptr;
7333. 
7334.   if (!sect_buff)
             ^
7335.     {
7336.     sect_buff = (unsigned char *)_TIFFmalloc(sectsize);

tools/tiffcrop.c:7336:5: 
7334.   if (!sect_buff)
7335.     {
7336.     sect_buff = (unsigned char *)_TIFFmalloc(sectsize);
          ^
7337.     *sect_buff_ptr = sect_buff;
7338.     _TIFFmemset(sect_buff, 0, sectsize);

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

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

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

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

tools/tiffcrop.c:7337:5: 
7335.     {
7336.     sect_buff = (unsigned char *)_TIFFmalloc(sectsize);
7337.     *sect_buff_ptr = sect_buff;
          ^
7338.     _TIFFmemset(sect_buff, 0, sectsize);
7339.     }

tools/tiffcrop.c:7338:5: 
7336.     sect_buff = (unsigned char *)_TIFFmalloc(sectsize);
7337.     *sect_buff_ptr = sect_buff;
7338.     _TIFFmemset(sect_buff, 0, sectsize);
          ^
7339.     }
7340.   else

libtiff/tif_unix.c:337:1: start of procedure _TIFFmemset()
  335. }
  336. 
  337. void
       ^
  338. _TIFFmemset(void* p, int v, tmsize_t c)
  339. {

libtiff/tif_unix.c:340:2: 
  338. _TIFFmemset(void* p, int v, tmsize_t c)
  339. {
  340. 	memset(p, v, (size_t) c);
        ^
  341. }
  342. 

libtiff/tif_unix.c:341:1: return from a call to _TIFFmemset
  339. {
  340. 	memset(p, v, (size_t) c);
  341. }
       ^
  342. 
  343. void
