avcodec/msrle: Check that the input is large enough to contain a end of picture code
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 21 Oct 2018 12:40:14 +0000 (14:40 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 24 Oct 2018 22:24:29 +0000 (00:24 +0200)
commit82e796a4c9ccaf2765c0a1e85dbcec73733f4246
treeb06dd59b9b0279464b38b80039e5b238be30fb73
parent1dbf2bc7a958684df11c94ba65d1d655e1a0cb61
avcodec/msrle: Check that the input is large enough to contain a end of picture code

Fixes: Timeout
Fixes: 10625/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MSRLE_fuzzer-5659651283091456

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 203ccb8746997777ce66beadd53b4631d217b9cd)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/msrle.c