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, 16 Jul 2018 17:16:13 +0000 (19:16 +0200)
commit314ca5672d378997a8a523b567b846c518cef8f1
tree491f08213fb7e39720019f2b0ede0356669e4fe0
parent78b1fbca3404459dcf8a1c34b5c7f9a5825ad61f
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