aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/x86_64/wcscmp.S
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/x86_64/wcscmp.S')
-rw-r--r--sysdeps/x86_64/wcscmp.S8
1 files changed, 8 insertions, 0 deletions
diff --git a/sysdeps/x86_64/wcscmp.S b/sysdeps/x86_64/wcscmp.S
index d6b516bce1..38e2849d5c 100644
--- a/sysdeps/x86_64/wcscmp.S
+++ b/sysdeps/x86_64/wcscmp.S
@@ -28,6 +28,14 @@ ENTRY (wcscmp)
*/
mov %esi, %eax
mov %edi, %edx
+
+#ifdef __CHKP__
+ bndcl (%rdi), %bnd0
+ bndcu (%rdi), %bnd0
+ bndcl (%rsi), %bnd1
+ bndcu (%rsi), %bnd1
+#endif
+
pxor %xmm0, %xmm0 /* clear %xmm0 for null char checks */
mov %al, %ch
mov %dl, %cl