[FFmpeg-cvslog] avcodec/imc: Clear padding of buf16
Michael Niedermayer
git at videolan.org
Mon Aug 4 23:57:50 EEST 2025
ffmpeg | branch: release/7.0 | Michael Niedermayer <michael at niedermayer.cc> | Sun Aug 3 14:39:53 2025 +0200| [9d60bffbf1d253df3f57cf7846d5ebaa7a6b7acb] | committer: Michael Niedermayer
avcodec/imc: Clear padding of buf16
Fixes: use of uninitialized memory
Fixes: 423673969/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_IAC_fuzzer-6685890556788736
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 715df4b1ff398758ca1b8a82c3d16940bc63fc56)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9d60bffbf1d253df3f57cf7846d5ebaa7a6b7acb
---
libavcodec/imc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavcodec/imc.c b/libavcodec/imc.c
index 99eb089236..72f218ed45 100644
--- a/libavcodec/imc.c
+++ b/libavcodec/imc.c
@@ -965,6 +965,8 @@ static int imc_decode_frame(AVCodecContext *avctx, AVFrame *frame,
LOCAL_ALIGNED_16(uint16_t, buf16, [(IMC_BLOCK_SIZE + AV_INPUT_BUFFER_PADDING_SIZE) / 2]);
+ memset(buf16 + IMC_BLOCK_SIZE/2, 0, AV_INPUT_BUFFER_PADDING_SIZE);
+
q->avctx = avctx;
if (buf_size < IMC_BLOCK_SIZE * avctx->ch_layout.nb_channels) {
More information about the ffmpeg-cvslog
mailing list