Commit 3d6a441fd3 for ffmpeg
commit 3d6a441fd35e5891b0470af8c1bf216965116f31
Author: Michael Niedermayer <michael@niedermayer.cc>
Date: Tue Oct 6 07:31:35 2026 +0200
avformat/rtpdec_rfc4175: Clear the frame buffer
The fix is the one recommended in the report.
Fixes: use of uninitialized memory
Fixes: V8a3e2cGQI7w
Fixes: AISLE-2026-0111-00477
Use of uninitialized memory Replicated through UnModified FFmpeg with Valgrind
Found-by: Joshua Rogers <joshua.rogers@aisle.com>
diff --git a/libavformat/rtpdec_rfc4175.c b/libavformat/rtpdec_rfc4175.c
index b49fc55d2d..41bf4a2c5d 100644
--- a/libavformat/rtpdec_rfc4175.c
+++ b/libavformat/rtpdec_rfc4175.c
@@ -260,7 +260,7 @@ static int rfc4175_handle_packet(AVFormatContext *ctx, PayloadContext *data,
}
if (!data->frame)
- data->frame = av_malloc(data->frame_size);
+ data->frame = av_mallocz(data->frame_size + AV_INPUT_BUFFER_PADDING_SIZE);
data->timestamp = *timestamp;