avcodec/mpegpicture: Check size of edge_emu_buffer
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 17 Mar 2019 14:18:20 +0000 (15:18 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 25 Mar 2019 14:33:50 +0000 (15:33 +0100)
commit1d44fab8c3c479532ec9d22064e5b777e9f0a49a
tree34ebe814e8a4abbd2573aba34286916ea04d5579
parent530286c96bd83b333833cd36b71a35268cb435f9
avcodec/mpegpicture: Check size of edge_emu_buffer

Fixes: OOM
Fixes: 13710/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MPEG4_fuzzer-5633152942342144

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 635067b75fce06928431ce9b9fcaee0c9b6b7280)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/mpegpicture.c