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>
Sun, 18 Nov 2018 01:35:03 +0000 (02:35 +0100)
commite6f8f6a7eefd1fb29db17a86bba4434117eaab08
tree25222df1ea6c0334c81493e8329c2d89d821d282
parent353ef58a8279d3c3a45fe18d1245d84cb843eb18
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