glibc/sysdeps
Noah Goldstein b2c474f8de x86: Fix strncat-avx2.S reading past length [BZ #30065]
Occurs when `src` has no null-term.

Two cases:

1) Zero-length check is doing:
```
    test    %rdx, %rdx
    jl      L(zero_len)
```
which doesn't actually check zero (was at some point `decq` and the
flag never got updated).

The fix is just make the flag `jle` i.e:
```
    test    %rdx, %rdx
    jle     L(zero_len)
```

2) Length check in page-cross case checking if we should continue is
doing:
```
    cmpq    %r8, %rdx
    jb      L(page_cross_small)
```
which means we will continue searching for null-term if length ends at
the end of a page and there was no null-term in `src`.

The fix is to make the flag:
```
    cmpq    %r8, %rdx
    jbe     L(page_cross_small)
```
2023-01-31 19:13:46 -06:00
..
aarch64 AArch64: Improve strrchr 2023-01-17 15:09:18 +00:00
alpha Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
arc Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
arm Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
csky Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
generic Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
gnu Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
hppa Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
htl Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
hurd Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
i386 Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ia64 ia64: Regenerate ulps 2023-01-24 11:21:38 -05:00
ieee754 math: Suppress -O0 warnings for soft-fp fsqrt [BZ #19444] 2023-01-11 17:50:51 -03:00
loongarch Regenerate configure. 2023-01-31 17:51:40 -05:00
m68k Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
mach Regenerate configure. 2023-01-31 17:51:40 -05:00
microblaze Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
mips Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
nios2 Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
nptl Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
or1k Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
posix Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
powerpc Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
pthread Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
riscv Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
s390 Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
sh Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
sparc sparc (64bit): Regenerate ulps 2023-01-24 11:21:50 -05:00
unix Add HWCAP2_SVE_EBF16 from Linux 6.1 to AArch64 bits/hwcap.h 2023-01-10 15:51:58 +00:00
wordsize-32 Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
wordsize-64 Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
x86 x86: Cache computation for AMD architecture. 2023-01-18 19:28:54 +01:00
x86_64 x86: Fix strncat-avx2.S reading past length [BZ #30065] 2023-01-31 19:13:46 -06:00