Fix buffers overrun in x86_64 memcmp-ssse3.S
authorLiubov Dmitrieva <liubov.dmitrieva@intel.com>
Wed, 26 Jun 2013 19:28:43 +0000 (12:28 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 26 Jun 2013 19:31:51 +0000 (12:31 -0700)
ChangeLog
sysdeps/x86_64/multiarch/memcmp-ssse3.S

index 64f2fe3..fd3a90f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
+
+       [BZ #15674]
+       * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
+
 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
 
        [BZ #15022]
index bdd2ed2..e319df9 100644 (file)
@@ -1463,10 +1463,8 @@ L(next_24_bytes):
        test    $0x40, %dh
        jnz     L(Byte22)
 
-       mov     -9(%rdi), %eax
-       and     $0xff, %eax
-       mov     -9(%rsi), %edx
-       and     $0xff, %edx
+       movzbl  -9(%rdi), %eax
+       movzbl  -9(%rsi), %edx
        sub     %edx, %eax
        ret
 # else