History

avcodec/indeo4: Check remaining data in Pic hdr extension parsing code

Fixes: Timeout Fixes: 2115/clusterfuzz-testcase-minimized-6594111748440064

Michael Niedermayer committed 9 years ago

Commit a3b5b601 parent 4e3ab1a1 file · +2 −0Browse files

Unified · Split

libavcodec/indeo4.c+2−0
@@ -237,6 +237,8 @@ static int decode_pic_hdr(IVI45DecContext *ctx, AVCodecContext *avctx) · 236 unmodified lines
237237 /* skip picture header extension if any */
238238 while (get_bits1(&ctx->gb)) {
239239 ff_dlog(avctx, "Pic hdr extension encountered!\n");
240+ if (get_bits_left(&ctx->gb) < 10)
241+ return AVERROR_INVALIDDATA;
240242 skip_bits(&ctx->gb, 8);
241243 }
242244

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t