]> sourceware.org Git - glibc.git/commitdiff
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 64f2fe37b389992e2a13045b2ce0009c507a3db6..fd3a90f87a021dfd6dc48e0eb7a26a874e1d998d 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 bdd2ed213c4dc920f6e5c5c68f4dc54fa51a00fb..e319df926e88dd88f2bda1c4b4731117c5d7dadb 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
This page took 0.10755 seconds and 5 git commands to generate.