glibc/string
John David Anglin 409a735816 String: test-memcpy used unaligned types for buffers [BZ 28572]
commit d585ba47fc
Author: Noah Goldstein <goldstein.w.n@gmail.com>
Date:   Mon Nov 1 00:49:48 2021 -0500

    string: Make tests birdirectional test-memcpy.c

Add tests that had src/dst non 4-byte aligned. Since src/dst are
initialized/compared as uint32_t type which is 4-byte aligned this can
break on some targets.

Fix the issue by specifying a new non-aligned 4-byte
`unaligned_uint32_t` for src/dst.

Another alternative is to rely on memcpy/memcmp for
initializing/testing src/dst. Using memcpy for initializing in memcpy
tests, however, could lead to future bugs.

Reviewed-by: Noah Goldstein <goldstein.w.n@gmail.com>
2021-12-07 22:19:50 -06:00
..
bits Don't add access size hints to fortifiable functions 2021-10-20 08:33:31 +05:30
_strerror.c
argz-addsep.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
argz-append.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
argz-count.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
argz-create.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
argz-ctsep.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
argz-delete.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
argz-extract.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
argz-insert.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
argz-next.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
argz-replace.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
argz-stringify.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
argz.h
basename.c
bcopy.c
bug-envz1.c
bug-strcoll1.c
bug-strcoll2.c
bug-strncat1.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
bug-strpbrk1.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
bug-strspn1.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
bug-strtok1.c
byteswap.h
bzero.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
Depend
endian.h
envz.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
envz.h
explicit_bzero.c
ffs.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
ffsll.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
inl-tester.c
Makefile String: Split memcpy tests so that parallel build is faster 2021-11-10 20:14:09 -06:00
memccpy.c
memchr.c
memcmp.c String: Add hidden defs for __memcmpeq() to enable internal usage 2021-10-26 16:51:29 -05:00
memcmpeq.c String: Add __memcmpeq as build target 2021-10-27 13:03:46 -05:00
memcpy.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
memfrob.c
memmem.c
memmove.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
memory.h
mempcpy.c
memrchr.c
memset.c
noinl-tester.c
rawmemchr.c string: Work around GCC PR 98512 in rawmemchr 2021-02-19 13:29:00 +01:00
sigabbrev_np.c
sigdescr_np.c
stpcpy.c
stpncpy.c
str-two-way.h
stratcliff.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
strcasecmp_l.c
strcasecmp.c
strcasestr.c
strcat.c
strchr.c
strchrnul.c
strcmp.c
strcoll_l.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
strcoll.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
strcpy.c
strcspn.c
strdup.c
strerror_l.c
strerror.c
strerrordesc_np.c
strerrorname_np.c
strfry.c
string-inlines.c
string.h String: Add support for __memcmpeq() ABI on all targets 2021-10-26 16:51:29 -05:00
strings.h
strlen.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
strncase_l.c
strncase.c
strncat.c
strncmp.c
strncpy.c
strndup.c
strnlen.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
strpbrk.c
strrchr.c
strsep.c
strsignal.c
strspn.c
strstr.c
strtok_r.c
strtok.c
strverscmp.c
strxfrm_l.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
strxfrm.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
swab.c
test-bcopy.c
test-bzero.c
test-endian-file-scope.c
test-endian-sign-conversion.c
test-endian-types.c
test-explicit_bzero.c
test-ffs.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
test-memccpy.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
test-memchr.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
test-memcmp.c String: Add tests for __memcmpeq 2021-10-26 16:51:29 -05:00
test-memcmpeq.c String: Add tests for __memcmpeq 2021-10-26 16:51:29 -05:00
test-memcpy-large.c String: Split memcpy tests so that parallel build is faster 2021-11-10 20:14:09 -06:00
test-memcpy-support.h String: test-memcpy used unaligned types for buffers [BZ 28572] 2021-12-07 22:19:50 -06:00
test-memcpy.c String: Split memcpy tests so that parallel build is faster 2021-11-10 20:14:09 -06:00
test-memmem.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
test-memmove.c string: Make tests birdirectional test-memcpy.c 2021-11-06 16:17:30 -05:00
test-mempcpy.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
test-memrchr.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
test-memset.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
test-rawmemchr.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
test-sig_np.c
test-stpcpy.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
test-stpncpy.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
test-strcasecmp.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
test-strcasestr.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
test-strcat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
test-strchr.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
test-strchrnul.c
test-strcmp.c x86-64: Use notl in EVEX strcmp [BZ #28646] 2021-12-03 21:14:11 -08:00
test-strcpy.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
test-strcspn.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
test-strerror-errno.c
test-string.h test-memcpy.c: Double TIMEOUT to (8 * 60) 2021-11-07 10:09:33 -08:00
test-strlen.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
test-strncasecmp.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
test-strncat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
test-strncmp.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
test-strncpy.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
test-strnlen.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
test-strpbrk.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
test-strrchr.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
test-strspn.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
test-strstr.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
testcopy.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
tester.c String: Add support for __memcmpeq() ABI on all targets 2021-10-26 16:51:29 -05:00
tst-bswap.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
tst-cmp.c
tst-endian.c
tst-inlcall.c
tst-memmove-overflow.c
tst-strcoll-overflow.c
tst-strerror.c
tst-strfry.c
tst-strlen.c
tst-strsignal.c
tst-strtok_r.c
tst-strtok.c
tst-strxfrm2.c
tst-strxfrm.c
tst-svc2.c
tst-svc.c
tst-svc.expect
tst-svc.input
tst-xbzero-opt.c
Versions String: Add support for __memcmpeq() ABI on all targets 2021-10-26 16:51:29 -05:00
wordcopy.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
xpg-strerror.c