mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-11 06:58:18 +00:00
avcodec/indeo4: Check remaining data in Pic hdr extension parsing code
Fixes: Timeout
Fixes: 2115/clusterfuzz-testcase-minimized-6594111748440064
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit a3b5b60bdf
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
50c2ef91d3
commit
ad9ce1fa1d
@ -237,6 +237,8 @@ static int decode_pic_hdr(IVI45DecContext *ctx, AVCodecContext *avctx)
|
||||
/* skip picture header extension if any */
|
||||
while (get_bits1(&ctx->gb)) {
|
||||
ff_dlog(avctx, "Pic hdr extension encountered!\n");
|
||||
if (get_bits_left(&ctx->gb) < 10)
|
||||
return AVERROR_INVALIDDATA;
|
||||
skip_bits(&ctx->gb, 8);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user