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 15:54:24 +0000 (17:54 +0200)
commit43015afd7ce9055f1fa2d7648c3fcd9b7cfd7721
treec810934b084df99a3eb2aee9d749741d70f76266
parent8305a4509af2908d88bb623deb816fdaa8056c83
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>
libavcodec/mss1.c
libavcodec/mss12.c
libavcodec/mss12.h
libavcodec/mss2.c