From 6199685d989facfd6105c30b50e30615e784fba3 Mon Sep 17 00:00:00 2001 From: Jason Garrett-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 a39b62c0..4f34309b 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.47.3