[FFmpeg-cvslog] avcodec/escape124: Do not return random numbers
Michael Niedermayer
git at videolan.org
Sun Apr 14 23:58:25 EEST 2024
ffmpeg | branch: release/3.4 | Michael Niedermayer <michael at niedermayer.cc> | Sun Sep 17 00:21:52 2023 +0200| [9dccc34ce28095c4cde5ba4958e35b605437d704] | committer: Michael Niedermayer
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
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
(cherry picked from commit fe6d46490f5ea9155fe0601b6246960ae17317fc)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9dccc34ce28095c4cde5ba4958e35b605437d704
---
libavcodec/escape124.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/escape124.c b/libavcodec/escape124.c
index 5e4e57bf90..6bcad51edc 100644
--- a/libavcodec/escape124.c
+++ b/libavcodec/escape124.c
@@ -238,7 +238,7 @@ static int escape124_decode_frame(AVCodecContext *avctx,
if ((ret = av_frame_ref(frame, s->frame)) < 0)
return ret;
- return frame_size;
+ return 0;
}
for (i = 0; i < 3; i++) {
@@ -372,7 +372,7 @@ static int escape124_decode_frame(AVCodecContext *avctx,
*got_frame = 1;
- return frame_size;
+ return 0;
}
More information about the ffmpeg-cvslog
mailing list