History

avcodec/ffv1dec: Blow up if user asks for explosion

Fixes: Ticket8403

Michael Niedermayer committed 2 years ago

Commit 747e1a21 parent 8b4e32f1 file · +3 −0Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/ffv1dec.c+3−0
@@ -354,6 +354,9 @@ static int decode_slice(AVCodecContext *c, void *arg) · 353 unmodified lines
354354 }
355355 }
356356
357+ if (sc->slice_damaged && (f->avctx->err_recognition & AV_EF_EXPLODE))
358+ return AVERROR_INVALIDDATA;
359+
357360 if ((c->active_thread_type & FF_THREAD_FRAME) && !f->frame_damaged)
358361 ff_progress_frame_report(&f->picture, si);
359362

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