PR #21471 opened by michaelni URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/21471 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/21471.patch
Related to: #YWH-PGM40646-33 Signed-off-by: Michael Niedermayer <[email protected]> >From ac8f9fde4fad281546b28e0dab98b7399cf0eeb5 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer <[email protected]> Date: Thu, 15 Jan 2026 02:47:06 +0100 Subject: [PATCH] avcodec/exr: use av_realloc_array() Related to: #YWH-PGM40646-33 Signed-off-by: Michael Niedermayer <[email protected]> --- libavcodec/exr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/exr.c b/libavcodec/exr.c index 536a55c5be..fe17ddcd31 100644 --- a/libavcodec/exr.c +++ b/libavcodec/exr.c @@ -1807,8 +1807,8 @@ static int decode_header(EXRContext *s, AVFrame *frame) } } - s->channels = av_realloc(s->channels, - ++s->nb_channels * sizeof(EXRChannel)); + s->channels = av_realloc_array(s->channels, + ++s->nb_channels, sizeof(EXRChannel)); if (!s->channels) { ret = AVERROR(ENOMEM); goto fail; -- 2.49.1 _______________________________________________ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]
