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
Showing the changes to libavcodec (1 of 1 file). Show all
Unified · Split
| @@ -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 | ||