This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit d98487b687af9582991882fc1cfb6024181f07cc
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Tue Oct 13 06:06:47 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Tue Oct 20 20:41:50 2026 +0000

    ffplay: avoid signed overflow of the list shuffle seed
    
    Volunteer for testing welcome
    
    Fixes: Qc9DRRq5X1KU
    Fixes: signed integer overflow
    Signed integer overflow Replicated through Modified FFmpeg with UBSAN
    Found during the review of https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24589
---
 fftools/ffplay_list.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fftools/ffplay_list.c b/fftools/ffplay_list.c
index 564f3c048e..5085396d23 100644
--- a/fftools/ffplay_list.c
+++ b/fftools/ffplay_list.c
@@ -183,7 +183,7 @@ static void list_sort_by(ListView *lv, int key, int 
seed_step)
     while (lv->sort[i].key != key)
         i++;
     if (key == LIST_SORT_SHUFFLE)
-        lv->shuffle_seed += seed_step;
+        lv->shuffle_seed = (unsigned)lv->shuffle_seed + seed_step;
     else if (i == 0)
         lv->sort[0].descending ^= 1;
     if (i == 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]

Reply via email to