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

Unified · Split

libavcodec/escape124.c+2−2
@@ -234,7 +234,7 @@ static int escape124_decode_frame(AVCodecContext *avctx, AVFrame *frame, · 233 unmodified lines
234 if ((ret = av_frame_ref(frame, s->frame)) < 0)234 if ((ret = av_frame_ref(frame, s->frame)) < 0)
235 return ret;235 return ret;
236 236
237 return frame_size;237 return 0;
238 }238 }
239 239
240 for (i = 0; i < 3; i++) {240 for (i = 0; i < 3; i++) {
@@ -367,7 +367,7 @@ static int escape124_decode_frame(AVCodecContext *avctx, AVFrame *frame, · 126 unmodified lines
367 367
368 *got_frame = 1;368 *got_frame = 1;
369 369
370 return frame_size;370 return 0;
371}371}
372 372
373 373

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