diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | sysdeps/x86_64/multiarch/memcmp-ssse3.S | 6 |
2 files changed, 7 insertions, 4 deletions
@@ -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 bdd2ed2..e319df9 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 |