libtiff/tif_getimage.c:447: error: Buffer Overrun L3
  Offset: [0, 255] Size: [0, +oo] by call to `PickContigCase`.

libtiff/tif_getimage.c:246:2: Assignment
244. 	img->row_offset = 0;
245. 	img->col_offset = 0;
246. 	img->redcmap = NULL;
      ^
247. 	img->greencmap = NULL;
248. 	img->bluecmap = NULL;

libtiff/tif_getimage.c:447:8: Call
445. 	    !(planarconfig == PLANARCONFIG_SEPARATE && colorchannels > 1);
446. 	if (img->isContig) {
447. 		if (!PickContigCase(img)) {
            ^
448. 			sprintf(emsg, "Sorry, can not handle image");
449. 			return 0;

libtiff/tif_getimage.c:2345:1: Parameter `*img->redcmap`
  2343.  * Select the appropriate conversion routine for packed data.
  2344.  */
  2345. static int
        ^
  2346. PickContigCase(TIFFRGBAImage* img)
  2347. {

libtiff/tif_getimage.c:2385:8: Call
  2383. 			break;
  2384. 		case PHOTOMETRIC_SEPARATED:
  2385. 			if (buildMap(img)) {
               ^
  2386. 				if (img->bitspersample == 8) {
  2387. 					if (!img->Map)

libtiff/tif_getimage.c:2307:1: Parameter `*img->redcmap`
    2305.  * by the associated put routine.
    2306.  */
    2307. static int
          ^
    2308. buildMap(TIFFRGBAImage* img)
    2309. {

libtiff/tif_getimage.c:2335:34: Call
    2333. 	 * unpacking tables for samples < 8 bits.
    2334. 	 */
    2335. 	if (img->bitspersample <= 8 && !makecmap(img))
                                           ^
    2336. 	    return (0);
    2337. 	break;

libtiff/tif_getimage.c:2269:10: <Offset trace>
2267. 	}
2268.     p = (uint32*)(img->PALmap + 256);
2269.     for (i = 0; i < 256; i++) {
               ^
2270. 	TIFFRGBValue c;
2271. 	img->PALmap[i] = p;

libtiff/tif_getimage.c:2269:10: Assignment
      2267. 	}
      2268.     p = (uint32*)(img->PALmap + 256);
      2269.     for (i = 0; i < 256; i++) {
                     ^
      2270. 	TIFFRGBValue c;
      2271. 	img->PALmap[i] = p;

libtiff/tif_getimage.c:2295:6: Assignment
      2293. 	    break;
      2294. 	case 8:
      2295. 	    CMAP(i);
                 ^
      2296. 	    break;
      2297. 	}

libtiff/tif_getimage.c:2251:1: <Length trace>
2249.  * number.
2250.  */
2251. static int
      ^
2252. makecmap(TIFFRGBAImage* img)
2253. {

libtiff/tif_getimage.c:2251:1: Parameter `*img->redcmap`
      2249.  * number.
      2250.  */
      2251. static int
            ^
      2252. makecmap(TIFFRGBAImage* img)
      2253. {

libtiff/tif_getimage.c:2256:5: Assignment
      2254.     int bitspersample = img->bitspersample;
      2255.     int nsamples = 8 / bitspersample;
      2256.     uint16* r = img->redcmap;
                ^
      2257.     uint16* g = img->greencmap;
      2258.     uint16* b = img->bluecmap;

libtiff/tif_getimage.c:2295:6: Array access: Offset: [0, 255] Size: [0, +oo] by call to `PickContigCase` 
      2293. 	    break;
      2294. 	case 8:
      2295. 	    CMAP(i);
                 ^
      2296. 	    break;
      2297. 	}
