avcodec/mjpegdec: Check for odd progressive RGB
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 6 Jul 2018 14:28:14 +0000 (16:28 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 22 Oct 2018 23:44:40 +0000 (01:44 +0200)
commit4ead5a947003f8556bf23533cdca9409187a3ac3
tree3c533e0854ab6d5b3f4b9250669a5e0f8f0d5e04
parent469503ac1de315a9288e333dbfc0896e3027227c
avcodec/mjpegdec: Check for odd progressive RGB

Fixes: out of array access
Fixes: 9225/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_JPEGLS_fuzzer-5684770334834688

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit ee1e3ca5eb1ec7d34e925d129c893e33847ee0b7)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/mjpegdec.c