avcodec/mjpegdec: Check for non ls PAL8
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 1 Jun 2019 17:06:07 +0000 (19:06 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 27 Jun 2019 15:50:47 +0000 (17:50 +0200)
commit1a022c66c827d8f3192c6c1d1dca0c679b8cff92
tree9e0e174e63ddc59a6a53c5e6a71f687caf1e42f6
parentc4a14a630328b45d8b98309056d88563c7fef0c5
avcodec/mjpegdec: Check for non ls PAL8

Fixes: Null-dereference READ in av_malloc
Fixes: 15002/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_THP_fuzzer-5643474625363968

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 442375fee7f1fb15e42fbc128dc38bdfcc2cc105)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/mjpegdec.c