diff options
author | Liubov Dmitrieva <liubov.dmitrieva@intel.com> | 2013-06-26 12:28:43 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2013-06-26 12:31:51 -0700 |
commit | 11b8a0e1d7b6175470ffc9077e94104c896093b7 (patch) | |
tree | d75f0dc9a9ce92b78a7761ed89d4cef47e95a964 | |
parent | b0037103771cc02e092884c39aa9e4982073099a (diff) | |
download | glibc-11b8a0e1d7b6175470ffc9077e94104c896093b7.tar.gz glibc-11b8a0e1d7b6175470ffc9077e94104c896093b7.tar.xz glibc-11b8a0e1d7b6175470ffc9077e94104c896093b7.zip |
Fix buffers overrun in x86_64 memcmp-ssse3.S
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | sysdeps/x86_64/multiarch/memcmp-ssse3.S | 6 |
2 files changed, 7 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog index 64f2fe37b3..fd3a90f87a 100644 --- 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] diff --git a/sysdeps/x86_64/multiarch/memcmp-ssse3.S b/sysdeps/x86_64/multiarch/memcmp-ssse3.S index bdd2ed213c..e319df926e 100644 --- a/sysdeps/x86_64/multiarch/memcmp-ssse3.S +++ b/sysdeps/x86_64/multiarch/memcmp-ssse3.S @@ -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 |