libtiff/tif_dir.c:286: error: Memory Leak
  memory dynamically allocated by call to `_TIFFsetShortArray()` at line 285, column 3 is not reachable after line 286, column 3.

libtiff/tif_dir.c:138:1: start of procedure _TIFFVSetField()
136. }
137. 
138. static int
     ^
139. _TIFFVSetField(TIFF* tif, uint32 tag, va_list ap)
140. {

libtiff/tif_dir.c:141:2: 
139. _TIFFVSetField(TIFF* tif, uint32 tag, va_list ap)
140. {
141. 	static const char module[] = "_TIFFVSetField";
      ^
142. 
143. 	TIFFDirectory* td = &tif->tif_dir;

libtiff/tif_dir.c:143:2: 
141. 	static const char module[] = "_TIFFVSetField";
142. 
143. 	TIFFDirectory* td = &tif->tif_dir;
      ^
144. 	int status = 1;
145. 	uint32 v32, i, v;

libtiff/tif_dir.c:144:2: 
142. 
143. 	TIFFDirectory* td = &tif->tif_dir;
144. 	int status = 1;
      ^
145. 	uint32 v32, i, v;
146. 	char* s;

libtiff/tif_dir.c:148:2: 
146. 	char* s;
147. 
148. 	switch (tag) {
      ^
149. 	case TIFFTAG_SUBFILETYPE:
150. 		td->td_subfiletype = (uint32) va_arg(ap, uint32);

libtiff/tif_dir.c:149:2: Switch condition is false. Skipping switch case
147. 
148. 	switch (tag) {
149. 	case TIFFTAG_SUBFILETYPE:
      ^
150. 		td->td_subfiletype = (uint32) va_arg(ap, uint32);
151. 		break;

libtiff/tif_dir.c:152:2: Switch condition is false. Skipping switch case
150. 		td->td_subfiletype = (uint32) va_arg(ap, uint32);
151. 		break;
152. 	case TIFFTAG_IMAGEWIDTH:
      ^
153. 		td->td_imagewidth = (uint32) va_arg(ap, uint32);
154. 		break;

libtiff/tif_dir.c:155:2: Switch condition is false. Skipping switch case
153. 		td->td_imagewidth = (uint32) va_arg(ap, uint32);
154. 		break;
155. 	case TIFFTAG_IMAGELENGTH:
      ^
156. 		td->td_imagelength = (uint32) va_arg(ap, uint32);
157. 		break;

libtiff/tif_dir.c:158:2: Switch condition is false. Skipping switch case
156. 		td->td_imagelength = (uint32) va_arg(ap, uint32);
157. 		break;
158. 	case TIFFTAG_BITSPERSAMPLE:
      ^
159. 		td->td_bitspersample = (uint16) va_arg(ap, uint16_vap);
160. 		/*

libtiff/tif_dir.c:182:2: Switch condition is false. Skipping switch case
180. 		}
181. 		break;
182. 	case TIFFTAG_COMPRESSION:
      ^
183. 		v = (uint16) va_arg(ap, uint16_vap);
184. 		/*

libtiff/tif_dir.c:203:2: Switch condition is false. Skipping switch case
201. 		    status = 0;
202. 		break;
203. 	case TIFFTAG_PHOTOMETRIC:
      ^
204. 		td->td_photometric = (uint16) va_arg(ap, uint16_vap);
205. 		break;

libtiff/tif_dir.c:206:2: Switch condition is false. Skipping switch case
204. 		td->td_photometric = (uint16) va_arg(ap, uint16_vap);
205. 		break;
206. 	case TIFFTAG_THRESHHOLDING:
      ^
207. 		td->td_threshholding = (uint16) va_arg(ap, uint16_vap);
208. 		break;

libtiff/tif_dir.c:209:2: Switch condition is false. Skipping switch case
207. 		td->td_threshholding = (uint16) va_arg(ap, uint16_vap);
208. 		break;
209. 	case TIFFTAG_FILLORDER:
      ^
210. 		v = (uint16) va_arg(ap, uint16_vap);
211. 		if (v != FILLORDER_LSB2MSB && v != FILLORDER_MSB2LSB)

libtiff/tif_dir.c:215:2: Switch condition is false. Skipping switch case
213. 		td->td_fillorder = (uint16) v;
214. 		break;
215. 	case TIFFTAG_ORIENTATION:
      ^
216. 		v = (uint16) va_arg(ap, uint16_vap);
217. 		if (v < ORIENTATION_TOPLEFT || ORIENTATION_LEFTBOT < v)

libtiff/tif_dir.c:222:2: Switch condition is false. Skipping switch case
220. 			td->td_orientation = (uint16) v;
221. 		break;
222. 	case TIFFTAG_SAMPLESPERPIXEL:
      ^
223. 		v = (uint16) va_arg(ap, uint16_vap);
224. 		if (v == 0)

libtiff/tif_dir.c:228:2: Switch condition is false. Skipping switch case
226. 		td->td_samplesperpixel = (uint16) v;
227. 		break;
228. 	case TIFFTAG_ROWSPERSTRIP:
      ^
229. 		v32 = (uint32) va_arg(ap, uint32);
230. 		if (v32 == 0)

libtiff/tif_dir.c:238:2: Switch condition is false. Skipping switch case
236. 		}
237. 		break;
238. 	case TIFFTAG_MINSAMPLEVALUE:
      ^
239. 		td->td_minsamplevalue = (uint16) va_arg(ap, uint16_vap);
240. 		break;

libtiff/tif_dir.c:241:2: Switch condition is false. Skipping switch case
239. 		td->td_minsamplevalue = (uint16) va_arg(ap, uint16_vap);
240. 		break;
241. 	case TIFFTAG_MAXSAMPLEVALUE:
      ^
242. 		td->td_maxsamplevalue = (uint16) va_arg(ap, uint16_vap);
243. 		break;

libtiff/tif_dir.c:244:2: Switch condition is false. Skipping switch case
242. 		td->td_maxsamplevalue = (uint16) va_arg(ap, uint16_vap);
243. 		break;
244. 	case TIFFTAG_SMINSAMPLEVALUE:
      ^
245. 		td->td_sminsamplevalue = (double) va_arg(ap, double);
246. 		break;

libtiff/tif_dir.c:247:2: Switch condition is false. Skipping switch case
245. 		td->td_sminsamplevalue = (double) va_arg(ap, double);
246. 		break;
247. 	case TIFFTAG_SMAXSAMPLEVALUE:
      ^
248. 		td->td_smaxsamplevalue = (double) va_arg(ap, double);
249. 		break;

libtiff/tif_dir.c:250:2: Switch condition is false. Skipping switch case
248. 		td->td_smaxsamplevalue = (double) va_arg(ap, double);
249. 		break;
250. 	case TIFFTAG_XRESOLUTION:
      ^
251. 		td->td_xresolution = (float) va_arg(ap, double);
252. 		break;

libtiff/tif_dir.c:253:2: Switch condition is false. Skipping switch case
251. 		td->td_xresolution = (float) va_arg(ap, double);
252. 		break;
253. 	case TIFFTAG_YRESOLUTION:
      ^
254. 		td->td_yresolution = (float) va_arg(ap, double);
255. 		break;

libtiff/tif_dir.c:256:2: Switch condition is false. Skipping switch case
254. 		td->td_yresolution = (float) va_arg(ap, double);
255. 		break;
256. 	case TIFFTAG_PLANARCONFIG:
      ^
257. 		v = (uint16) va_arg(ap, uint16_vap);
258. 		if (v != PLANARCONFIG_CONTIG && v != PLANARCONFIG_SEPARATE)

libtiff/tif_dir.c:262:2: Switch condition is false. Skipping switch case
260. 		td->td_planarconfig = (uint16) v;
261. 		break;
262. 	case TIFFTAG_XPOSITION:
      ^
263. 		td->td_xposition = (float) va_arg(ap, double);
264. 		break;

libtiff/tif_dir.c:265:2: Switch condition is false. Skipping switch case
263. 		td->td_xposition = (float) va_arg(ap, double);
264. 		break;
265. 	case TIFFTAG_YPOSITION:
      ^
266. 		td->td_yposition = (float) va_arg(ap, double);
267. 		break;

libtiff/tif_dir.c:268:2: Switch condition is false. Skipping switch case
266. 		td->td_yposition = (float) va_arg(ap, double);
267. 		break;
268. 	case TIFFTAG_RESOLUTIONUNIT:
      ^
269. 		v = (uint16) va_arg(ap, uint16_vap);
270. 		if (v < RESUNIT_NONE || RESUNIT_CENTIMETER < v)

libtiff/tif_dir.c:274:2: Switch condition is false. Skipping switch case
272. 		td->td_resolutionunit = (uint16) v;
273. 		break;
274. 	case TIFFTAG_PAGENUMBER:
      ^
275. 		td->td_pagenumber[0] = (uint16) va_arg(ap, uint16_vap);
276. 		td->td_pagenumber[1] = (uint16) va_arg(ap, uint16_vap);

libtiff/tif_dir.c:278:2: Switch condition is false. Skipping switch case
276. 		td->td_pagenumber[1] = (uint16) va_arg(ap, uint16_vap);
277. 		break;
278. 	case TIFFTAG_HALFTONEHINTS:
      ^
279. 		td->td_halftonehints[0] = (uint16) va_arg(ap, uint16_vap);
280. 		td->td_halftonehints[1] = (uint16) va_arg(ap, uint16_vap);

libtiff/tif_dir.c:282:2: Switch condition is true. Entering switch case
280. 		td->td_halftonehints[1] = (uint16) va_arg(ap, uint16_vap);
281. 		break;
282. 	case TIFFTAG_COLORMAP:
      ^
283. 		v32 = (uint32)(1L<<td->td_bitspersample);
284. 		_TIFFsetShortArray(&td->td_colormap[0], va_arg(ap, uint16*), v32);

libtiff/tif_dir.c:283:3: 
281. 		break;
282. 	case TIFFTAG_COLORMAP:
283. 		v32 = (uint32)(1L<<td->td_bitspersample);
       ^
284. 		_TIFFsetShortArray(&td->td_colormap[0], va_arg(ap, uint16*), v32);
285. 		_TIFFsetShortArray(&td->td_colormap[1], va_arg(ap, uint16*), v32);

libtiff/tif_dir.c:284:3: 
282. 	case TIFFTAG_COLORMAP:
283. 		v32 = (uint32)(1L<<td->td_bitspersample);
284. 		_TIFFsetShortArray(&td->td_colormap[0], va_arg(ap, uint16*), v32);
       ^
285. 		_TIFFsetShortArray(&td->td_colormap[1], va_arg(ap, uint16*), v32);
286. 		_TIFFsetShortArray(&td->td_colormap[2], va_arg(ap, uint16*), v32);

libtiff/tif_dir.c:62:1: start of procedure _TIFFsetShortArray()
  60. void _TIFFsetNString(char** cpp, char* cp, uint32 n)
  61.     { setByteArray((void**) cpp, (void*) cp, n, 1); }
  62. void _TIFFsetShortArray(uint16** wpp, uint16* wp, uint32 n)
      ^
  63.     { setByteArray((void**) wpp, (void*) wp, n, sizeof (uint16)); }
  64. void _TIFFsetLongArray(uint32** lpp, uint32* lp, uint32 n)

libtiff/tif_dir.c:63:7: 
  61.     { setByteArray((void**) cpp, (void*) cp, n, 1); }
  62. void _TIFFsetShortArray(uint16** wpp, uint16* wp, uint32 n)
  63.     { setByteArray((void**) wpp, (void*) wp, n, sizeof (uint16)); }
            ^
  64. void _TIFFsetLongArray(uint32** lpp, uint32* lp, uint32 n)
  65.     { setByteArray((void**) lpp, (void*) lp, n, sizeof (uint32)); }

libtiff/tif_dir.c:43:1: start of procedure setByteArray()
    41. #define DATATYPE_IEEEFP		3       /* !IEEE floating point data */
    42. 
    43. static void
        ^
    44. setByteArray(void** vpp, void* vp, size_t nmemb, size_t elem_size)
    45. {

libtiff/tif_dir.c:46:6: Taking true branch
    44. setByteArray(void** vpp, void* vp, size_t nmemb, size_t elem_size)
    45. {
    46. 	if (*vpp)
             ^
    47. 		_TIFFfree(*vpp), *vpp = 0;
    48. 	if (vp) {

libtiff/tif_dir.c:47:3: 
    45. {
    46. 	if (*vpp)
    47. 		_TIFFfree(*vpp), *vpp = 0;
          ^
    48. 	if (vp) {
    49. 		tmsize_t bytes = (tmsize_t)(nmemb * elem_size);

libtiff/tif_unix.c:259:1: start of procedure _TIFFfree()
      257. }
      258. 
      259. void
           ^
      260. _TIFFfree(void* p)
      261. {

libtiff/tif_unix.c:262:2: 
      260. _TIFFfree(void* p)
      261. {
      262. 	free(p);
            ^
      263. }
      264. 

libtiff/tif_unix.c:263:1: return from a call to _TIFFfree
      261. {
      262. 	free(p);
      263. }
           ^
      264. 
      265. void*

libtiff/tif_dir.c:48:6: Taking true branch
    46. 	if (*vpp)
    47. 		_TIFFfree(*vpp), *vpp = 0;
    48. 	if (vp) {
             ^
    49. 		tmsize_t bytes = (tmsize_t)(nmemb * elem_size);
    50. 		if (elem_size && bytes / elem_size == nmemb)

libtiff/tif_dir.c:49:3: 
    47. 		_TIFFfree(*vpp), *vpp = 0;
    48. 	if (vp) {
    49. 		tmsize_t bytes = (tmsize_t)(nmemb * elem_size);
          ^
    50. 		if (elem_size && bytes / elem_size == nmemb)
    51. 			*vpp = (void*) _TIFFmalloc(bytes);

libtiff/tif_dir.c:50:7: Taking true branch
    48. 	if (vp) {
    49. 		tmsize_t bytes = (tmsize_t)(nmemb * elem_size);
    50. 		if (elem_size && bytes / elem_size == nmemb)
              ^
    51. 			*vpp = (void*) _TIFFmalloc(bytes);
    52. 		if (*vpp)

libtiff/tif_dir.c:50:20: Taking true branch
    48. 	if (vp) {
    49. 		tmsize_t bytes = (tmsize_t)(nmemb * elem_size);
    50. 		if (elem_size && bytes / elem_size == nmemb)
                           ^
    51. 			*vpp = (void*) _TIFFmalloc(bytes);
    52. 		if (*vpp)

libtiff/tif_dir.c:51:4: 
    49. 		tmsize_t bytes = (tmsize_t)(nmemb * elem_size);
    50. 		if (elem_size && bytes / elem_size == nmemb)
    51. 			*vpp = (void*) _TIFFmalloc(bytes);
           ^
    52. 		if (*vpp)
    53. 			_TIFFmemcpy(*vpp, vp, bytes);

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

libtiff/tif_dir.c:52:7: Taking true branch
    50. 		if (elem_size && bytes / elem_size == nmemb)
    51. 			*vpp = (void*) _TIFFmalloc(bytes);
    52. 		if (*vpp)
              ^
    53. 			_TIFFmemcpy(*vpp, vp, bytes);
    54. 	}

libtiff/tif_dir.c:53:4: 
    51. 			*vpp = (void*) _TIFFmalloc(bytes);
    52. 		if (*vpp)
    53. 			_TIFFmemcpy(*vpp, vp, bytes);
           ^
    54. 	}
    55. }

libtiff/tif_unix.c:277:1: start of procedure _TIFFmemcpy()
      275. }
      276. 
      277. void
           ^
      278. _TIFFmemcpy(void* d, const void* s, tmsize_t c)
      279. {

libtiff/tif_unix.c:280:2: 
      278. _TIFFmemcpy(void* d, const void* s, tmsize_t c)
      279. {
      280. 	memcpy(d, s, (size_t) c);
            ^
      281. }
      282. 

libtiff/tif_unix.c:281:1: return from a call to _TIFFmemcpy
      279. {
      280. 	memcpy(d, s, (size_t) c);
      281. }
           ^
      282. 
      283. int

libtiff/tif_dir.c:48:2: 
    46. 	if (*vpp)
    47. 		_TIFFfree(*vpp), *vpp = 0;
    48. 	if (vp) {
         ^
    49. 		tmsize_t bytes = (tmsize_t)(nmemb * elem_size);
    50. 		if (elem_size && bytes / elem_size == nmemb)

libtiff/tif_dir.c:55:1: return from a call to setByteArray
    53. 			_TIFFmemcpy(*vpp, vp, bytes);
    54. 	}
    55. }
        ^
    56. void _TIFFsetByteArray(void** vpp, void* vp, uint32 n)
    57.     { setByteArray(vpp, vp, n, 1); }

libtiff/tif_dir.c:63:67: return from a call to _TIFFsetShortArray
  61.     { setByteArray((void**) cpp, (void*) cp, n, 1); }
  62. void _TIFFsetShortArray(uint16** wpp, uint16* wp, uint32 n)
  63.     { setByteArray((void**) wpp, (void*) wp, n, sizeof (uint16)); }
                                                                        ^
  64. void _TIFFsetLongArray(uint32** lpp, uint32* lp, uint32 n)
  65.     { setByteArray((void**) lpp, (void*) lp, n, sizeof (uint32)); }

libtiff/tif_dir.c:285:3: 
283. 		v32 = (uint32)(1L<<td->td_bitspersample);
284. 		_TIFFsetShortArray(&td->td_colormap[0], va_arg(ap, uint16*), v32);
285. 		_TIFFsetShortArray(&td->td_colormap[1], va_arg(ap, uint16*), v32);
       ^
286. 		_TIFFsetShortArray(&td->td_colormap[2], va_arg(ap, uint16*), v32);
287. 		break;

libtiff/tif_dir.c:62:1: start of procedure _TIFFsetShortArray()
  60. void _TIFFsetNString(char** cpp, char* cp, uint32 n)
  61.     { setByteArray((void**) cpp, (void*) cp, n, 1); }
  62. void _TIFFsetShortArray(uint16** wpp, uint16* wp, uint32 n)
      ^
  63.     { setByteArray((void**) wpp, (void*) wp, n, sizeof (uint16)); }
  64. void _TIFFsetLongArray(uint32** lpp, uint32* lp, uint32 n)

libtiff/tif_dir.c:63:7: 
  61.     { setByteArray((void**) cpp, (void*) cp, n, 1); }
  62. void _TIFFsetShortArray(uint16** wpp, uint16* wp, uint32 n)
  63.     { setByteArray((void**) wpp, (void*) wp, n, sizeof (uint16)); }
            ^
  64. void _TIFFsetLongArray(uint32** lpp, uint32* lp, uint32 n)
  65.     { setByteArray((void**) lpp, (void*) lp, n, sizeof (uint32)); }

libtiff/tif_dir.c:43:1: start of procedure setByteArray()
    41. #define DATATYPE_IEEEFP		3       /* !IEEE floating point data */
    42. 
    43. static void
        ^
    44. setByteArray(void** vpp, void* vp, size_t nmemb, size_t elem_size)
    45. {

libtiff/tif_dir.c:46:6: Taking true branch
    44. setByteArray(void** vpp, void* vp, size_t nmemb, size_t elem_size)
    45. {
    46. 	if (*vpp)
             ^
    47. 		_TIFFfree(*vpp), *vpp = 0;
    48. 	if (vp) {

libtiff/tif_dir.c:47:3: 
    45. {
    46. 	if (*vpp)
    47. 		_TIFFfree(*vpp), *vpp = 0;
          ^
    48. 	if (vp) {
    49. 		tmsize_t bytes = (tmsize_t)(nmemb * elem_size);

libtiff/tif_unix.c:259:1: start of procedure _TIFFfree()
      257. }
      258. 
      259. void
           ^
      260. _TIFFfree(void* p)
      261. {

libtiff/tif_unix.c:262:2: 
      260. _TIFFfree(void* p)
      261. {
      262. 	free(p);
            ^
      263. }
      264. 

libtiff/tif_unix.c:263:1: return from a call to _TIFFfree
      261. {
      262. 	free(p);
      263. }
           ^
      264. 
      265. void*

libtiff/tif_dir.c:48:6: Taking true branch
    46. 	if (*vpp)
    47. 		_TIFFfree(*vpp), *vpp = 0;
    48. 	if (vp) {
             ^
    49. 		tmsize_t bytes = (tmsize_t)(nmemb * elem_size);
    50. 		if (elem_size && bytes / elem_size == nmemb)

libtiff/tif_dir.c:49:3: 
    47. 		_TIFFfree(*vpp), *vpp = 0;
    48. 	if (vp) {
    49. 		tmsize_t bytes = (tmsize_t)(nmemb * elem_size);
          ^
    50. 		if (elem_size && bytes / elem_size == nmemb)
    51. 			*vpp = (void*) _TIFFmalloc(bytes);

libtiff/tif_dir.c:50:7: Taking true branch
    48. 	if (vp) {
    49. 		tmsize_t bytes = (tmsize_t)(nmemb * elem_size);
    50. 		if (elem_size && bytes / elem_size == nmemb)
              ^
    51. 			*vpp = (void*) _TIFFmalloc(bytes);
    52. 		if (*vpp)

libtiff/tif_dir.c:50:20: Taking true branch
    48. 	if (vp) {
    49. 		tmsize_t bytes = (tmsize_t)(nmemb * elem_size);
    50. 		if (elem_size && bytes / elem_size == nmemb)
                           ^
    51. 			*vpp = (void*) _TIFFmalloc(bytes);
    52. 		if (*vpp)

libtiff/tif_dir.c:51:4: 
    49. 		tmsize_t bytes = (tmsize_t)(nmemb * elem_size);
    50. 		if (elem_size && bytes / elem_size == nmemb)
    51. 			*vpp = (void*) _TIFFmalloc(bytes);
           ^
    52. 		if (*vpp)
    53. 			_TIFFmemcpy(*vpp, vp, bytes);

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

libtiff/tif_dir.c:52:7: Taking true branch
    50. 		if (elem_size && bytes / elem_size == nmemb)
    51. 			*vpp = (void*) _TIFFmalloc(bytes);
    52. 		if (*vpp)
              ^
    53. 			_TIFFmemcpy(*vpp, vp, bytes);
    54. 	}

libtiff/tif_dir.c:53:4: 
    51. 			*vpp = (void*) _TIFFmalloc(bytes);
    52. 		if (*vpp)
    53. 			_TIFFmemcpy(*vpp, vp, bytes);
           ^
    54. 	}
    55. }

libtiff/tif_unix.c:277:1: start of procedure _TIFFmemcpy()
      275. }
      276. 
      277. void
           ^
      278. _TIFFmemcpy(void* d, const void* s, tmsize_t c)
      279. {

libtiff/tif_unix.c:280:2: 
      278. _TIFFmemcpy(void* d, const void* s, tmsize_t c)
      279. {
      280. 	memcpy(d, s, (size_t) c);
            ^
      281. }
      282. 

libtiff/tif_unix.c:281:1: return from a call to _TIFFmemcpy
      279. {
      280. 	memcpy(d, s, (size_t) c);
      281. }
           ^
      282. 
      283. int

libtiff/tif_dir.c:48:2: 
    46. 	if (*vpp)
    47. 		_TIFFfree(*vpp), *vpp = 0;
    48. 	if (vp) {
         ^
    49. 		tmsize_t bytes = (tmsize_t)(nmemb * elem_size);
    50. 		if (elem_size && bytes / elem_size == nmemb)

libtiff/tif_dir.c:55:1: return from a call to setByteArray
    53. 			_TIFFmemcpy(*vpp, vp, bytes);
    54. 	}
    55. }
        ^
    56. void _TIFFsetByteArray(void** vpp, void* vp, uint32 n)
    57.     { setByteArray(vpp, vp, n, 1); }

libtiff/tif_dir.c:63:67: return from a call to _TIFFsetShortArray
  61.     { setByteArray((void**) cpp, (void*) cp, n, 1); }
  62. void _TIFFsetShortArray(uint16** wpp, uint16* wp, uint32 n)
  63.     { setByteArray((void**) wpp, (void*) wp, n, sizeof (uint16)); }
                                                                        ^
  64. void _TIFFsetLongArray(uint32** lpp, uint32* lp, uint32 n)
  65.     { setByteArray((void**) lpp, (void*) lp, n, sizeof (uint32)); }

libtiff/tif_dir.c:286:3: 
284. 		_TIFFsetShortArray(&td->td_colormap[0], va_arg(ap, uint16*), v32);
285. 		_TIFFsetShortArray(&td->td_colormap[1], va_arg(ap, uint16*), v32);
286. 		_TIFFsetShortArray(&td->td_colormap[2], va_arg(ap, uint16*), v32);
       ^
287. 		break;
288. 	case TIFFTAG_EXTRASAMPLES:

libtiff/tif_dir.c:62:1: start of procedure _TIFFsetShortArray()
  60. void _TIFFsetNString(char** cpp, char* cp, uint32 n)
  61.     { setByteArray((void**) cpp, (void*) cp, n, 1); }
  62. void _TIFFsetShortArray(uint16** wpp, uint16* wp, uint32 n)
      ^
  63.     { setByteArray((void**) wpp, (void*) wp, n, sizeof (uint16)); }
  64. void _TIFFsetLongArray(uint32** lpp, uint32* lp, uint32 n)

libtiff/tif_dir.c:63:7: 
  61.     { setByteArray((void**) cpp, (void*) cp, n, 1); }
  62. void _TIFFsetShortArray(uint16** wpp, uint16* wp, uint32 n)
  63.     { setByteArray((void**) wpp, (void*) wp, n, sizeof (uint16)); }
            ^
  64. void _TIFFsetLongArray(uint32** lpp, uint32* lp, uint32 n)
  65.     { setByteArray((void**) lpp, (void*) lp, n, sizeof (uint32)); }

libtiff/tif_dir.c:43:1: start of procedure setByteArray()
    41. #define DATATYPE_IEEEFP		3       /* !IEEE floating point data */
    42. 
    43. static void
        ^
    44. setByteArray(void** vpp, void* vp, size_t nmemb, size_t elem_size)
    45. {

libtiff/tif_dir.c:46:6: Taking false branch
    44. setByteArray(void** vpp, void* vp, size_t nmemb, size_t elem_size)
    45. {
    46. 	if (*vpp)
             ^
    47. 		_TIFFfree(*vpp), *vpp = 0;
    48. 	if (vp) {

libtiff/tif_dir.c:48:6: Taking false branch
    46. 	if (*vpp)
    47. 		_TIFFfree(*vpp), *vpp = 0;
    48. 	if (vp) {
             ^
    49. 		tmsize_t bytes = (tmsize_t)(nmemb * elem_size);
    50. 		if (elem_size && bytes / elem_size == nmemb)

libtiff/tif_dir.c:48:2: 
    46. 	if (*vpp)
    47. 		_TIFFfree(*vpp), *vpp = 0;
    48. 	if (vp) {
         ^
    49. 		tmsize_t bytes = (tmsize_t)(nmemb * elem_size);
    50. 		if (elem_size && bytes / elem_size == nmemb)

libtiff/tif_dir.c:55:1: return from a call to setByteArray
    53. 			_TIFFmemcpy(*vpp, vp, bytes);
    54. 	}
    55. }
        ^
    56. void _TIFFsetByteArray(void** vpp, void* vp, uint32 n)
    57.     { setByteArray(vpp, vp, n, 1); }

libtiff/tif_dir.c:63:67: return from a call to _TIFFsetShortArray
  61.     { setByteArray((void**) cpp, (void*) cp, n, 1); }
  62. void _TIFFsetShortArray(uint16** wpp, uint16* wp, uint32 n)
  63.     { setByteArray((void**) wpp, (void*) wp, n, sizeof (uint16)); }
                                                                        ^
  64. void _TIFFsetLongArray(uint32** lpp, uint32* lp, uint32 n)
  65.     { setByteArray((void**) lpp, (void*) lp, n, sizeof (uint32)); }
