PR #21639 opened by mkver
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/21639
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/21639.patch

Fixes a stack-buffer overflow (detected by ASAN) when benching
vc1dsp.


>From 3fcae5d9a1e723cb65287370779f87e7b766ad48 Mon Sep 17 00:00:00 2001
From: Andreas Rheinhardt <[email protected]>
Date: Wed, 15 Oct 2025 18:28:09 +0200
Subject: [PATCH] tests/checkasm/vc1dsp: Use correct function argument

Fixes a stack-buffer overflow (detected by ASAN) when benching
vc1dsp.

Signed-off-by: Andreas Rheinhardt <[email protected]>
---
 tests/checkasm/vc1dsp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/checkasm/vc1dsp.c b/tests/checkasm/vc1dsp.c
index f18f0f8251..dda6d36257 100644
--- a/tests/checkasm/vc1dsp.c
+++ b/tests/checkasm/vc1dsp.c
@@ -323,7 +323,7 @@ static void check_inv_trans_adding(void)
             call_new(inv_trans_out1 + 24 + 8, 24, inv_trans_in1);
             if (memcmp(inv_trans_out0, inv_trans_out1, 10 * 24))
                 fail();
-            bench_new(inv_trans_out1 + 24 + 8, 24, inv_trans_in1 + 8);
+            bench_new(inv_trans_out1 + 24 + 8, 24, inv_trans_in1);
             av_free(coeffs);
         }
     }
-- 
2.52.0

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

Reply via email to