PR #23133 opened by michaelni URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23133 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23133.patch
Fixes: passing NULL pointer Found-by: iceray-Li Signed-off-by: Michael Niedermayer <[email protected]> >From b04011598137ce3d787f5273678f647560195040 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer <[email protected]> Date: Sun, 17 May 2026 19:22:44 +0200 Subject: [PATCH] avformat/mccdec: dont pass MULL to bytestream2_put_buffer() Fixes: passing NULL pointer Found-by: iceray-Li Signed-off-by: Michael Niedermayer <[email protected]> --- libavformat/mccdec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavformat/mccdec.c b/libavformat/mccdec.c index 4384704f32..9d72e5545e 100644 --- a/libavformat/mccdec.c +++ b/libavformat/mccdec.c @@ -313,7 +313,8 @@ static int mcc_read_header(AVFormatContext *s) if (v >= 16 && v <= 35) { int idx = v - 16; - bytestream2_put_buffer(&pb, aliases[idx].value, aliases[idx].len); + if (aliases[idx].len) + bytestream2_put_buffer(&pb, aliases[idx].value, aliases[idx].len); } else { uint8_t vv; -- 2.52.0 _______________________________________________ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]
