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

Git pushed a commit to branch release/8.1
in repository ffmpeg.

commit 96d5d4c75d78b9ae30d7e897b27fcafc0d99e41c
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Mon May 18 20:18:47 2026 +0200
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Sun Jun 14 04:40:51 2026 +0200

    avformat/vividas: fix misaligned access
    
    Fixes: ffmpeg_xor_block_libavformat_vividas.c_134_15.poc
    
    Found-by: iceray-Li
    Signed-off-by: Michael Niedermayer <[email protected]>
    (cherry picked from commit 84a48165f0af2278e2e9e77926fc7ecc57dedc10)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavformat/vividas.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/vividas.c b/libavformat/vividas.c
index 465e63dd49..5584b04c0c 100644
--- a/libavformat/vividas.c
+++ b/libavformat/vividas.c
@@ -131,7 +131,7 @@ static void xor_block(void *p1, void *p2, unsigned size, 
int key, unsigned *key_
     size >>= 2;
 
     while (size > 0) {
-        *d2 = *d1 ^ (HAVE_BIGENDIAN ? av_bswap32(k) : k);
+        AV_WN32(d2, AV_RN32(d1) ^ (HAVE_BIGENDIAN ? av_bswap32(k) : k));
         k += key;
         d1++;
         d2++;

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to