PR #23145 opened by michaelni URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23145 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23145.patch
Fixes: ffmpeg_xor_block_libavformat_vividas.c_134_15.poc Found-by: iceray-Li Signed-off-by: Michael Niedermayer <[email protected]> >From 775beb0d98ad0bd30b8547a6a2f3ab21172feee0 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer <[email protected]> Date: Mon, 18 May 2026 20:18:47 +0200 Subject: [PATCH] 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]> --- libavformat/vividas.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/vividas.c b/libavformat/vividas.c index 9617b10c0a..23f010d25c 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++; -- 2.52.0 _______________________________________________ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]
