id summary reporter owner description type status priority milestone component version severity resolution keywords cc 3517 NITF: fix read out of buffer for NBPP < 8 and very small block size; fix decoding of NBPP=4 Even Rouault Even Rouault "A few issues : * NITFRasterBand::Unpack() can trigger Valgrind errors about read after allocated buffer when the block size is very small (typically nBlockSize < psImage->nBitsPerSample) and when NBPP=3, 5, 6 or 7 (the algorithm expect that there's enough data to unpack for 8 pixels). * The decoding of NBPP=4 uses an obvious wrong bitmask (0x07 instead of 0x0f) * NITFReadImageLine() wasn't ready to deal with nBitsPerSample < 8. I've made a few fixes, but I'm not 100% sure about their correctness as I haven't been able to find reference samples" defect closed normal GDAL_Raster unspecified normal fixed nitf warmerdam