PR #24097 opened by michaelni URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24097 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24097.patch
Fixes: use of uninitialized memory Signed-off-by: Michael Niedermayer <[email protected]> >From 173d9700245feb2ca235b3a6f2766a56b660dd86 Mon Sep 17 00:00:00 2001 From: Umar Pathan <[email protected]> Date: Wed, 12 Aug 2026 00:19:30 +0200 Subject: [PATCH] avformat/webp_anim_dec: use ffio_read_size for ICCP and EXIF chunks Fixes: use of uninitialized memory Signed-off-by: Michael Niedermayer <[email protected]> --- libavformat/webp_anim_dec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavformat/webp_anim_dec.c b/libavformat/webp_anim_dec.c index badc36f936..672f126d7c 100644 --- a/libavformat/webp_anim_dec.c +++ b/libavformat/webp_anim_dec.c @@ -170,7 +170,7 @@ static int webp_anim_read_header(AVFormatContext *s) AV_PKT_DATA_ICC_PROFILE, size, 0); if (!sd) return AVERROR(ENOMEM); - ret = avio_read(pb, sd->data, size); + ret = ffio_read_size(pb, sd->data, size); if (ret < 0) return ret; ctx->has_iccp = 1; @@ -299,7 +299,7 @@ static int webp_anim_read_packet(AVFormatContext *s, AVPacket *pkt) AV_PKT_DATA_EXIF, size, 0); if (!sd) return AVERROR(ENOMEM); - ret = avio_read(pb, sd->data, size); + ret = ffio_read_size(pb, sd->data, size); if (ret < 0) return ret; ctx->has_exif = 1; -- 2.52.0 _______________________________________________ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]
