This is an automated email from the git hooks/post-receive script.
Git pushed a commit to branch master
in repository ffmpeg.
The following commit(s) were added to refs/heads/master by this push:
new ecd5dfc308 avcodec/pcx: zero the rest of a scanline the input ends in
ecd5dfc308 is described below
commit ecd5dfc308a164757e7f25b1afefd8db21b43cf9
Author: Michael Niedermayer <[email protected]>
AuthorDate: Sun Oct 4 01:25:29 2026 +0200
Commit: michaelni <[email protected]>
CommitDate: Sun Oct 11 00:46:04 2026 +0000
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;
}
--
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]