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 b98c9cf33536a90082ffc9a44e452b912e4a3fb6 Author: Michael Niedermayer <[email protected]> AuthorDate: Sat Oct 10 07:25:28 2026 +0200 Commit: Michael Niedermayer <[email protected]> CommitDate: Sun Nov 15 05:26:09 2026 +0100 avcodec/cbs_sei: clear the message slot handed out by ff_cbs_sei_list_add() Fixes: heap-use-after-free Fixes: YtyT0QH1InrQ Fixes: ANT-2026-13DK7NZD Fixes: poc.264 Found-by: Claude and Ada Logics Use after free Replicated through UnModified FFmpeg with ASAN (cherry picked from commit 2c515eea07df719379e7f73deeeb7ccb8768433f) Signed-off-by: Michael Niedermayer <[email protected]> --- libavcodec/cbs_sei.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libavcodec/cbs_sei.c b/libavcodec/cbs_sei.c index f354a10029..4f04b9ff83 100644 --- a/libavcodec/cbs_sei.c +++ b/libavcodec/cbs_sei.c @@ -279,11 +279,8 @@ int ff_cbs_sei_list_add(SEIRawMessageList *list) list->messages = ptr; list->nb_messages_allocated = new_count; - - // Zero the newly-added entries. - memset(list->messages + old_count, 0, - (new_count - old_count) * sizeof(*list->messages)); } + memset(&list->messages[list->nb_messages], 0, sizeof(*list->messages)); ++list->nb_messages; 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]
