aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/x86_64/strtok.S
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/x86_64/strtok.S')
-rw-r--r--sysdeps/x86_64/strtok.S3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/x86_64/strtok.S b/sysdeps/x86_64/strtok.S
index 5636d9a625..17e2521608 100644
--- a/sysdeps/x86_64/strtok.S
+++ b/sysdeps/x86_64/strtok.S
@@ -90,6 +90,9 @@ ENTRY (FUNCTION)
the last run. */
cmpq $0, %rdx
cmove %rax, %rdx
+#ifdef __CHKP__
+ bndldx (,%rax,1),%bnd0
+#endif
testq %rdx, %rdx
jz L(returnNULL)
movq %rsi, %rax /* Get start of delimiter set. */