tools/rgb2ycbcr.c:150: error: Null Dereference
  pointer `v` last assigned on line 147 could be null and is dereferenced at line 150, column 3.

tools/rgb2ycbcr.c:144:1: start of procedure setupLuma()
142. int	Yzero;
143. 
144. static float*
     ^
145. setupLuma(float c)
146. {

tools/rgb2ycbcr.c:147:2: 
145. setupLuma(float c)
146. {
147. 	float *v = (float *)_TIFFmalloc(256 * sizeof (float));
      ^
148. 	int i;
149. 	for (i = 0; i < 256; i++)

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/rgb2ycbcr.c:149:7: 
147. 	float *v = (float *)_TIFFmalloc(256 * sizeof (float));
148. 	int i;
149. 	for (i = 0; i < 256; i++)
           ^
150. 		v[i] = c * i;
151. 	return (v);

tools/rgb2ycbcr.c:149:14: Loop condition is true. Entering loop body
147. 	float *v = (float *)_TIFFmalloc(256 * sizeof (float));
148. 	int i;
149. 	for (i = 0; i < 256; i++)
                  ^
150. 		v[i] = c * i;
151. 	return (v);

tools/rgb2ycbcr.c:150:3: 
148. 	int i;
149. 	for (i = 0; i < 256; i++)
150. 		v[i] = c * i;
       ^
151. 	return (v);
152. }
