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

Git pushed a commit to branch master
in repository ffmpeg.

commit 7db504710419fb8b83d80b8d791089dcd6f2aefa
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Tue Oct 6 06:51:47 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Sat Oct 10 21:41:14 2026 +0000

    avformat/omadec: Repeat the key bytes from the padded key copy in kset()
    
    Fixes: out of array read
    Fixes: f3cEzuDEDwTL
    Fixes: AISLE-2026-0111-00258
    Out of array read Replicated through UnModified FFmpeg with ASAN
    Found-by: Joshua Rogers <[email protected]>
---
 libavformat/omadec.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavformat/omadec.c b/libavformat/omadec.c
index 552a37df18..6c034b1a1a 100644
--- a/libavformat/omadec.c
+++ b/libavformat/omadec.c
@@ -126,14 +126,14 @@ static int kset(AVFormatContext *s, const uint8_t *r_val, 
const uint8_t *n_val,
             memset(oc->r_val, 0, 24);
             memcpy(oc->r_val, r_val, len);
         }
-        memcpy(&oc->r_val[16], r_val, 8);
+        memcpy(&oc->r_val[16], oc->r_val, 8);
     }
     if (n_val) {
         if (n_val != oc->n_val) {
             memset(oc->n_val, 0, 24);
             memcpy(oc->n_val, n_val, len);
         }
-        memcpy(&oc->n_val[16], n_val, 8);
+        memcpy(&oc->n_val[16], oc->n_val, 8);
     }
 
     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]

Reply via email to