mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
avcodec/intrax8: Check for end of bitstream in ff_intrax8_decode_picture()
Fixes: Timeout (105sec -> 1sec) Fixes: 20479/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VC1_fuzzer-5769846937878528 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
0b11ad5172
commit
0a9ccc2514
@ -801,6 +801,8 @@ int ff_intrax8_decode_picture(IntraX8Context *w, Picture *pict,
|
||||
for (w->mb_y = 0; w->mb_y < w->mb_height * 2; w->mb_y++) {
|
||||
x8_init_block_index(w, w->frame);
|
||||
mb_xy = (w->mb_y >> 1) * (w->mb_width + 1);
|
||||
if (get_bits_left(gb) < 1)
|
||||
goto error;
|
||||
for (w->mb_x = 0; w->mb_x < w->mb_width * 2; w->mb_x++) {
|
||||
x8_get_prediction(w);
|
||||
if (x8_setup_spatial_predictor(w, 0))
|
||||
|
Loading…
Reference in New Issue
Block a user