PR #24868 opened by michaelni URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24868 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24868.patch
Fixes: use of uninitialized memory Fixes: 0WI64ughd0tM Regression since: 50617fce07 (RLE) Found-by: Adrian Junge (vurlo) Replicated through UnModified FFmpeg >From 7f6cc165fcc984ee20d211ddc7a57e21256cca87 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer <[email protected]> Date: Sun, 4 Oct 2026 01:25:29 +0200 Subject: [PATCH] avcodec/pcx: zero the rest of a scanline the input ends in Fixes: use of uninitialized memory Fixes: 0WI64ughd0tM Regression since: 50617fce07 (RLE) Found-by: Adrian Junge (vurlo) Replicated through UnModified FFmpeg --- libavcodec/pcx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavcodec/pcx.c b/libavcodec/pcx.c index 15f2e3c2cf..f77385b39a 100644 --- a/libavcodec/pcx.c +++ b/libavcodec/pcx.c @@ -54,8 +54,9 @@ static int pcx_rle_decode(GetByteContext *gb, dst[i++] = value; } } else { - bytestream2_get_buffer(gb, dst, bytes_per_scanline); + i = bytestream2_get_buffer(gb, dst, bytes_per_scanline); } + memset(dst + i, 0, bytes_per_scanline - i); return 0; } -- 2.52.0 _______________________________________________ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]
