avcodec/mss4: Check input size against skip bits
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 14 May 2019 12:29:43 +0000 (14:29 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 5 Jun 2019 11:19:59 +0000 (13:19 +0200)
commit0fef412dffb74fef3494f7fae0c138c32a444484
treed3729fea75df7f01b9aefd2ec7e7b04fdd58fa94
parent8e520843dd76a644c019134ac7b17eba9f1118b3
avcodec/mss4: Check input size against skip bits

Fixes: Timeout (17sec -> 20ms)
Fixes: 14615/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MTS2_fuzzer-5093007763701760
Fixes: 14797/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MTS2_fuzzer-5651696119709696

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/mss4.c