This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch release/9.1 in repository ffmpeg.
commit b621a210624b5dbabe06ab7637edc89d9d119834 Author: Michael Niedermayer <[email protected]> AuthorDate: Tue Nov 3 04:25:52 2026 +0100 Commit: Michael Niedermayer <[email protected]> CommitDate: Sun Nov 15 02:42:31 2026 +0100 avcodec/webp: reject uncompressed alpha chunks shorter than the image Fixes: 8VUuZb6oh1t5 Fixes: AISLE-2026-0150-00187 Fixes: disclosure of previous frame content Disclosure of previous frame content Replicated through UnModified FFmpeg (image sequence of 40 lossy images with alpha 0xAA followed by one with a 4 byte uncompressed ALPH chunk, the alpha plane of the last frame shows 0xAA) Found-by: Joshua Rogers (AISLE) (cherry picked from commit 92b318e0b33623720d9f128ad7bc5fa8277c34f7) Signed-off-by: Michael Niedermayer <[email protected]> --- libavcodec/webp.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libavcodec/webp.c b/libavcodec/webp.c index e4174f0828..59b78d06c3 100644 --- a/libavcodec/webp.c +++ b/libavcodec/webp.c @@ -1257,6 +1257,8 @@ static int vp8_lossy_decode_alpha(AVCodecContext *avctx, AVFrame *p, if (s->alpha_compression == ALPHA_COMPRESSION_NONE) { GetByteContext gb; + if (data_size < s->width * s->height) + return AVERROR_INVALIDDATA; bytestream2_init(&gb, data_start, data_size); for (y = 0; y < s->height; y++) bytestream2_get_buffer(&gb, p->data[3] + p->linesize[3] * y, @@ -1335,8 +1337,10 @@ static int vp8_lossy_decode_frame(AVCodecContext *avctx, AVFrame *p, if (s->has_alpha) { ret = vp8_lossy_decode_alpha(avctx, p, s->alpha_data, s->alpha_data_size); - if (ret < 0) + if (ret < 0) { + *got_frame = 0; return ret; + } } return ret; } -- 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]
