[x264-devel] commit: Fix potential crash in checkasm (Jason Garrett-Glaser )

git version control git at videolan.org
Sat Jun 20 01:28:59 CEST 2009


x264 | branch: master | Jason Garrett-Glaser <darkshikari at gmail.com> | Wed Jun 10 10:37:01 2009 -0700| [6199685d989facfd6105c30b50e30615e784fba3] | committer: Jason Garrett-Glaser 

Fix potential crash in checkasm
ssim_end4_sse2 requires aligned sums

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=6199685d989facfd6105c30b50e30615e784fba3
---

 tools/checkasm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/checkasm.c b/tools/checkasm.c
index a39b62c..4f34309 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 );



More information about the x264-devel mailing list