From 84fc0be90329bffd3c3f4515463cc7348bccc366 Mon Sep 17 00:00:00 2001 From: Fiona Glaser Date: Wed, 10 Jun 2009 10:37:01 -0700 Subject: [PATCH] Fix potential crash in checkasm ssim_end4_sse2 requires aligned sums --- tools/checkasm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/checkasm.c b/tools/checkasm.c index b842ac98..2b882962 100644 --- a/tools/checkasm.c +++ b/tools/checkasm.c @@ -414,7 +414,7 @@ static int check_pixel( int cpu_ref, int cpu_new ) pixel_asm.ssim_end4 != pixel_ref.ssim_end4 ) { float res_c, res_a; - int sums[5][4] = {{0}}; + DECLARE_ALIGNED_16( int sums[5][4] ) = {{0}}; used_asm = ok = 1; x264_emms(); res_c = x264_pixel_ssim_wxh( &pixel_c, buf1+2, 32, buf2+2, 32, 32, 28, buf3 ); -- 2.40.0