[FFmpeg-devel] [PATCH 5/5] avcodec/smacker: cleanup on bet buffer failure
Michael Niedermayer
michael at niedermayer.cc
Wed Jul 16 03:52:08 EEST 2025
Fixes: memleak (of vlc)
Fixes: 430343927/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SMACKAUD_fuzzer-5265858979233792
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
libavcodec/smacker.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/smacker.c b/libavcodec/smacker.c
index 99009bfd361..e0c4dac350c 100644
--- a/libavcodec/smacker.c
+++ b/libavcodec/smacker.c
@@ -668,7 +668,7 @@ static int smka_decode_frame(AVCodecContext *avctx, AVFrame *frame,
}
if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
- return ret;
+ goto error;
samples = (int16_t *)frame->data[0];
samples8 = frame->data[0];
--
2.49.0
More information about the ffmpeg-devel
mailing list