From: Fiona Glaser Date: Wed, 10 Jun 2009 17:37:01 +0000 (-0700) Subject: Fix potential crash in checkasm X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=84fc0be90329bffd3c3f4515463cc7348bccc366;p=libx264 Fix potential crash in checkasm ssim_end4_sse2 requires aligned sums --- 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 );