about summary refs log tree commit diff
path: root/iconvdata/ibm5347.c
diff options
context:
space:
mode:
authorMatheus Castanho <msc@linux.ibm.com>2022-06-07 10:27:26 -0300
committerMatheus Castanho <msc@linux.ibm.com>2022-06-07 15:07:25 -0300
commit0218463dd8265ed937622f88ac68c7d984fe0cfc (patch)
treea253402c7ff3c83a003d9a2dda48c239eac8ddb5 /iconvdata/ibm5347.c
parenteea282d9c665392d6959f6d7112ba4bef27701c9 (diff)
downloadglibc-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 'iconvdata/ibm5347.c')
0 files changed, 0 insertions, 0 deletions