avcodec/mjpegdec: Check that reference frame matches the current frame
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 5 Jun 2017 20:23:15 +0000 (22:23 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 5 Jun 2017 20:43:23 +0000 (22:43 +0200)
commit4705edbbb96e193f51c72248f508ae5693702a48
tree9cd1f0b8fe7c7822780bf332e3e8e48c26225a33
parentd7cbeab4c1381f95ed0ebf85d7950bee96f66164
avcodec/mjpegdec: Check that reference frame matches the current frame

Fixes: out of array read
Fixes: 2097/clusterfuzz-testcase-minimized-5036861833609216

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