avcodec/vc1dec: Limit bits by the actual bitstream size
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 8 Dec 2019 18:37:46 +0000 (19:37 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 11 Jan 2020 22:31:18 +0000 (23:31 +0100)
commitc56a52a82c0a4039e606e82b948a8abfe417f35f
tree70ee1344be11ad85a877e598cdf83ac625186335
parent8250bb49b19d50d8c8384ebec79371d59d0ccf21
avcodec/vc1dec: Limit bits by the actual bitstream size

Fixes: Timeout (350 ->19sec)
Fixes: 19249/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VC1IMAGE_fuzzer-6566896438870016

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