about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorLiubov Dmitrieva <liubov.dmitrieva@intel.com>2013-06-26 12:28:43 -0700
committerH.J. Lu <hjl.tools@gmail.com>2013-06-26 12:31:51 -0700
commit11b8a0e1d7b6175470ffc9077e94104c896093b7 (patch)
treed75f0dc9a9ce92b78a7761ed89d4cef47e95a964 /sysdeps
parentb0037103771cc02e092884c39aa9e4982073099a (diff)
downloadglibc-11b8a0e1d7b6175470ffc9077e94104c896093b7.tar.gz
glibc-11b8a0e1d7b6175470ffc9077e94104c896093b7.tar.xz
glibc-11b8a0e1d7b6175470ffc9077e94104c896093b7.zip
Fix buffers overrun in x86_64 memcmp-ssse3.S
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/x86_64/multiarch/memcmp-ssse3.S6
1 files changed, 2 insertions, 4 deletions
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