avcodec/mss1: check for overread and forward errors
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 2 Aug 2019 22:29:48 +0000 (00:29 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 5 Aug 2019 17:34:33 +0000 (19:34 +0200)
commit772d91d6b0c6cfb313548c46c9a8b3ccc7272caf
treef8dc4d9b4d44b28c5aeb51c5693c118793899c5e
parent11f01ad26c997ac3f6fd586a8a6dbf1def8e4311
avcodec/mss1: check for overread and forward errors

Fixes: Timeout (106sec -> 14ms)
Fixes: 15576/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MSS1_fuzzer-5688080461201408

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 43015afd7ce9055f1fa2d7648c3fcd9b7cfd7721)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/mss1.c
libavcodec/mss12.c
libavcodec/mss12.h
libavcodec/mss2.c