diff options
author | Andreas Schwab <schwab@redhat.com> | 2011-10-13 13:33:58 +0200 |
---|---|---|
committer | Andreas Schwab <schwab@redhat.com> | 2011-10-13 13:34:41 +0200 |
commit | 81dcc7fb74a766f970800b9975e85b5fe7f6ea38 (patch) | |
tree | 06438881eb125e621e8cad6bdb2412e71c68856f /sysdeps | |
parent | 5298ffa828f2a7fe9e16c7f8971273a36a7530e6 (diff) | |
download | glibc-81dcc7fb74a766f970800b9975e85b5fe7f6ea38.tar glibc-81dcc7fb74a766f970800b9975e85b5fe7f6ea38.tar.gz glibc-81dcc7fb74a766f970800b9975e85b5fe7f6ea38.tar.bz2 glibc-81dcc7fb74a766f970800b9975e85b5fe7f6ea38.zip |
Check for zero size in memrchr for x86_64
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/x86_64/memrchr.S | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/x86_64/memrchr.S b/sysdeps/x86_64/memrchr.S index 81b7a1c320..70adca379c 100644 --- a/sysdeps/x86_64/memrchr.S +++ b/sysdeps/x86_64/memrchr.S @@ -282,6 +282,9 @@ L(return_null): .p2align 4 L(length_less16_offset0): + test %edx, %edx + jz L(return_null) + mov %dl, %cl pcmpeqb (%rdi), %xmm1 |