From: Jason Garrett-Glaser Date: Wed, 10 Jun 2009 17:37:01 +0000 (-0700) Subject: Fix potential crash in checkasm X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=6199685d989facfd6105c30b50e30615e784fba3;p=x264.git Fix potential crash in checkasm ssim_end4_sse2 requires aligned sums --- 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 );