glibc/sysdeps/x86_64/x32
H.J. Lu f566b02852 x86-64 strncat: Properly handle the length parameter [BZ# 24097]
On x32, the size_t parameter may be passed in the lower 32 bits of a
64-bit register with the non-zero upper 32 bits.  The string/memory
functions written in assembly can only use the lower 32 bits of a
64-bit register as length or must clear the upper 32 bits before using
the full 64-bit register for length.

This pach fixes strncat for x32.  Tested on x86-64 and x32.  On x86-64,
libc.so is the same with and without the fix.
Reviewed-by: Noah Goldstein <goldstein.w.n@gmail.com>
2022-12-02 08:18:10 -08:00
..
fpu Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
_itoa.h Add a comment to sysdeps/x86_64/x32/_itoa.h 2012-05-19 06:46:29 -07:00
divdi3.c Add dummy files for x32 2012-05-16 10:24:02 -07:00
dl-machine.h x86_64: Remove _dl_skip_args usage 2022-05-30 16:33:34 -03:00
ffs.c Add x32 ffs 2012-05-16 11:54:56 -07:00
gmp-mparam.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
Implies-after Add x86_64 Implies-after files 2012-05-15 14:38:32 -07:00
Makefile x86-64 strncat: Properly handle the length parameter [BZ# 24097] 2022-12-02 08:18:10 -08:00
symbol-hacks.h Include generic symbol-hacks.h for x32 2014-01-20 11:11:01 -08:00
sysdep.h x86-64: Move LP_SIZE definition to its own header 2022-10-18 17:02:08 +02:00
test-size_t.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
tst-size_t-memchr.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
tst-size_t-memcmp-2.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
tst-size_t-memcmp.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
tst-size_t-memcpy.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
tst-size_t-memrchr.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
tst-size_t-memset.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
tst-size_t-strncasecmp.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
tst-size_t-strncat.c x86-64 strncat: Properly handle the length parameter [BZ# 24097] 2022-12-02 08:18:10 -08:00
tst-size_t-strncmp.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
tst-size_t-strncpy.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
tst-size_t-strnlen.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
tst-size_t-wcsncmp.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
tst-size_t-wcsnlen.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
tst-size_t-wmemchr.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
tst-size_t-wmemcmp.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
tst-size_t-wmemset.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
x86-lp_size.h x86-64: Move LP_SIZE definition to its own header 2022-10-18 17:02:08 +02:00