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>
Sat, 7 Jul 2018 22:55:49 +0000 (00:55 +0200)
commitee1e3ca5eb1ec7d34e925d129c893e33847ee0b7
tree2e2eb8e8bd3698e58355b0d023f737c2c9b606d6
parentc71e1e60305669c225c696dd99f6db5dc550a56a
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>
libavcodec/mjpegdec.c