This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch release/8.0 in repository ffmpeg.
commit 2e5a1e26b40fa6c3be928345165974dd0ba25c15 Author: David Korczynski <[email protected]> AuthorDate: Sun May 17 14:32:49 2026 +0200 Commit: Michael Niedermayer <[email protected]> CommitDate: Sun Jun 14 04:58:59 2026 +0200 avcodec/g2meet: The stack is EPIC_PIX_STACK_SIZE Fixes: out of array access Fixes: ada-5-poc.avi Found-by: Claude and Ada Logics. This issue was found by Anthropic from using agents to study security of open source projects, and I am from Ada Logics helping validate the found issues and report to maintainers. Signed-off-by: Michael Niedermayer <[email protected]> (cherry picked from commit 989e621bcd93c3c79dbfbe65710505259b8c73e9) Signed-off-by: Michael Niedermayer <[email protected]> --- libavcodec/g2meet.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libavcodec/g2meet.c b/libavcodec/g2meet.c index f952a06f12..a0cb745851 100644 --- a/libavcodec/g2meet.c +++ b/libavcodec/g2meet.c @@ -481,12 +481,13 @@ static void epic_free_pixel_cache(ePICPixHash *hash) static inline int is_pixel_on_stack(const ePICContext *dc, uint32_t pix) { int i; + int n = FFMIN(dc->stack_pos, EPIC_PIX_STACK_SIZE); - for (i = 0; i < dc->stack_pos; i++) + for (i = 0; i < n; i++) if (dc->stack[i] == pix) break; - return i != dc->stack_pos; + return i != n; } #define TOSIGNED(val) (((val) >> 1) ^ -((val) & 1)) _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
