History

avcodec/escape124: Do not return random numbers

Fixes: out of array access Fixes: 62164/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ESCAPE124_fuzzer-6035022714634240 Fixes: 62164/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ESCAPE124_fuzzer-6422176201572352

Michael Niedermayer committed 3 years ago

Commit fe6d4641 parent 515c0241 file · +2 −2Browse files

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

Unified · Split

libavcodec/escape124.c+2−2
@@ -234,7 +234,7 @@ static int escape124_decode_frame(AVCodecContext *avctx, AVFrame *frame, · 233 unmodified lines
234234 if ((ret = av_frame_ref(frame, s->frame)) < 0)
235235 return ret;
236236
237− return frame_size;
237+ return 0;
238238 }
239239
240240 for (i = 0; i < 3; i++) {
@@ -367,7 +367,7 @@ static int escape124_decode_frame(AVCodecContext *avctx, AVFrame *frame, · 126 unmodified lines
367367
368368 *got_frame = 1;
369369
370− return frame_size;
370+ return 0;
371371 }
372372
373373

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