mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-21 01:12:26 +08:00
4c92a10412
__strncpy_power9 initializes VR 18 with zeroes to be used throughout the
code, including when zero-padding the destination string. However, the
v18 reference was mistakenly being used for stxv and stxvl, which take a
VSX vector as operand. The code ended up using the uninitialized VSR 18
register by mistake.
Both occurrences have been changed to use the proper VSX number for VR 18
(i.e. VSR 50).
Tested on powerpc, powerpc64 and powerpc64le.
Signed-off-by: Kewen Lin <linkw@gcc.gnu.org>
(cherry picked from commit
|
||
---|---|---|
.. | ||
a2 | ||
be | ||
bits | ||
cell | ||
fpu | ||
le | ||
multiarch | ||
power4 | ||
power6 | ||
power7 | ||
power8 | ||
__longjmp-common.S | ||
__longjmp.S | ||
addmul_1.S | ||
atomic-machine.h | ||
backtrace.c | ||
bsd-_setjmp.S | ||
bsd-setjmp.S | ||
bzero.S | ||
configure | ||
configure.ac | ||
crti.S | ||
crtn.S | ||
dl-dtprocnum.h | ||
dl-funcdesc.h | ||
dl-irel.h | ||
dl-machine.c | ||
dl-machine.h | ||
dl-trampoline.S | ||
entry.h | ||
ffsll.c | ||
hp-timing.h | ||
Implies | ||
lshift.S | ||
Makefile | ||
memcpy.S | ||
memset.S | ||
mul_1.S | ||
ppc-mcount.S | ||
register-dump.h | ||
rtld-memset.c | ||
setjmp-bug21895.c | ||
setjmp-common.S | ||
setjmp.S | ||
stackguard-macros.h | ||
start.S | ||
strchr.S | ||
strcmp.S | ||
strlen.S | ||
strncmp.S | ||
submul_1.S | ||
sysdep.h | ||
tls-macros.h | ||
tst-audit.h | ||
tst-setjmp-bug21895-static.c | ||
tst-ucontext-ppc64-vscr.c |