diff options
author | Matheus Castanho <msc@linux.ibm.com> | 2022-06-07 10:27:26 -0300 |
---|---|---|
committer | Matheus Castanho <msc@linux.ibm.com> | 2022-06-07 15:07:25 -0300 |
commit | 0218463dd8265ed937622f88ac68c7d984fe0cfc (patch) | |
tree | a253402c7ff3c83a003d9a2dda48c239eac8ddb5 /localedata/bug-usesetlocale.c | |
parent | eea282d9c665392d6959f6d7112ba4bef27701c9 (diff) | |
download | glibc-0218463dd8265ed937622f88ac68c7d984fe0cfc.tar.gz glibc-0218463dd8265ed937622f88ac68c7d984fe0cfc.tar.xz glibc-0218463dd8265ed937622f88ac68c7d984fe0cfc.zip |
powerpc: Fix VSX register number on __strncpy_power9 [BZ #29197]
__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>
Diffstat (limited to 'localedata/bug-usesetlocale.c')
0 files changed, 0 insertions, 0 deletions