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 566e54d828c75f55263f812c5bf6dfd07532b00b Author: Michael Niedermayer <[email protected]> AuthorDate: Wed Nov 11 16:32:49 2026 +0100 Commit: Michael Niedermayer <[email protected]> CommitDate: Thu Nov 19 04:36:59 2026 +0100 avformat/imfdec: fix the overflow check of the resource count Fixes: out of array write Fixes: spGhOOxgliHp Regression since: ef0d5245d6 Found during the triage of a finding from the review of https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25795 Out of array write Replicated through UnModified FFmpeg with ASAN (cherry picked from commit ea01b058e3cd9a2012f2b1a36efee499e9dfe32b) Signed-off-by: Michael Niedermayer <[email protected]> --- libavformat/imfdec.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libavformat/imfdec.c b/libavformat/imfdec.c index 39a95366e6..2aebdc3b8b 100644 --- a/libavformat/imfdec.c +++ b/libavformat/imfdec.c @@ -482,9 +482,8 @@ static int open_track_file_resource(AVFormatContext *s, AV_UUID_ARG(asset_locator->uuid), asset_locator->absolute_uri); - if (track->resource_count > INT32_MAX - track_file_resource->base.repeat_count - || (track->resource_count + track_file_resource->base.repeat_count) - > INT_MAX / sizeof(IMFVirtualTrackResourcePlaybackCtx)) + if (track_file_resource->base.repeat_count + > INT_MAX / sizeof(IMFVirtualTrackResourcePlaybackCtx) - track->resource_count) return AVERROR(ENOMEM); tmp = av_fast_realloc(track->resources, &track->resources_alloc_sz, -- 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]
