glibc/string
Stefan Liebler 51aeab9a36 Fix stringop-overflow warning in test-strncat.
Starting with commit
b2c474f8de
"x86: Fix strncat-avx2.S reading past length [BZ #30065]"

Building on s390 the test fails due warnings like:

In function ‘do_one_test’,
    inlined from ‘do_overflow_tests’ at test-strncat.c:175:7:
test-strncat.c:31:18: error: ‘strnlen’ specified bound [4294966546, 4294967295] exceeds maximum object size 2147483647 [-Werror=stringop-overflow=]
   31 | # define STRNLEN strnlen
      |                  ^
test-strncat.c:83:16: note: in expansion of macro ‘STRNLEN’
   83 |   size_t len = STRNLEN (src, n);
|                ^~~~~~~

In all werror cases, the call to strnlen (.., SIZE_MAX) is inlined.
Therefore this patch just marks the do_one_test function as noinline.

Reviewed-by: Wilco Dijkstra  <Wilco.Dijkstra@arm.com>
2023-03-02 14:25:34 +01:00
..
bits
_strerror.c
argz-addsep.c
argz-append.c
argz-count.c
argz-create.c
argz-ctsep.c
argz-delete.c
argz-extract.c
argz-insert.c
argz-next.c
argz-replace.c
argz-stringify.c
argz.h
basename.c
bcopy.c
bug-envz1.c
bug-strcoll1.c
bug-strcoll2.c
bug-strncat1.c
bug-strpbrk1.c
bug-strspn1.c
bug-strtok1.c
byteswap.h
bzero.c
Depend
endian.h
envz.c
envz.h
explicit_bzero.c
ffs.c
ffsll.c
inl-tester.c
Makefile string: Disable stack protector in early static initialization 2023-02-08 17:14:03 -03:00
memccpy.c
memchr.c string: Improve generic memchr 2023-02-06 16:19:35 -03:00
memcmp.c Parameterize OP_T_THRES from memcopy.h 2023-02-06 16:19:35 -03:00
memcmpeq.c
memcpy.c
memfrob.c
memmem.c
memmove.c
memory.h
mempcpy.c
memrchr.c string: Add libc_hidden_proto for memrchr 2023-02-08 17:13:58 -03:00
memset.c
noinl-tester.c
rawmemchr.c Replace rawmemchr (s, '\0') with strchr 2023-02-06 16:16:19 +00:00
sigabbrev_np.c
sigdescr_np.c
stpcpy.c string: Improve generic stpcpy 2023-02-06 16:19:35 -03:00
stpncpy.c
str-two-way.h
stratcliff.c
strcasecmp_l.c
strcasecmp.c
strcasestr.c
strcat.c
strchr.c string: Improve generic strchr 2023-02-06 16:19:35 -03:00
strchrnul.c string: Add libc_hidden_proto for strchrnul 2023-02-08 17:13:56 -03:00
strcmp.c string: Improve generic strcmp 2023-02-06 16:19:35 -03:00
strcoll_l.c
strcoll.c
strcpy.c string: Improve generic strcpy 2023-02-06 16:19:35 -03:00
strcspn.c
strdup.c
strerror_l.c
strerror.c
strerrordesc_np.c
strerrorname_np.c
strfry.c
string-inlines.c
string.h
strings.h
strlen.c string: Improve generic strlen 2023-02-06 16:19:35 -03:00
strncase_l.c
strncase.c
strncat.c
strncmp.c string: Improve generic strncmp 2023-02-06 16:19:35 -03:00
strncpy.c
strndup.c
strnlen.c string: Improve generic strnlen with memchr 2023-02-06 16:19:35 -03:00
strpbrk.c
strrchr.c string: Improve generic strrchr with memrchr and strlen 2023-02-06 16:19:35 -03:00
strsep.c
strsignal.c
strspn.c
strstr.c
strtok_r.c
strtok.c
strverscmp.c
strxfrm_l.c
strxfrm.c
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
test-memccpy.c
test-memchr.c string: Hook up the default implementation on test-memchr 2023-02-06 16:19:35 -03:00
test-memcmp.c
test-memcmpeq.c
test-memcpy-large.c
test-memcpy-support.h
test-memcpy.c
test-memmem.c
test-memmove.c
test-mempcpy.c
test-memrchr.c string: Hook up the default implementation on test-memrchr 2023-02-06 16:19:35 -03:00
test-memset.c
test-rawmemchr.c
test-sig_np.c
test-stpcpy.c string: Hook up the default implementation on test-stpcpy 2023-02-06 16:19:35 -03:00
test-stpncpy.c
test-strcasecmp.c
test-strcasestr.c
test-strcat.c
test-strchr.c string: Hook up the default implementation on test-strchr 2023-02-06 16:19:35 -03:00
test-strchrnul.c
test-strcmp.c string: Hook up the default implementation on test-strcmp 2023-02-06 16:19:35 -03:00
test-strcpy.c string: Hook up the default implementation on test-strcpy 2023-02-06 16:19:35 -03:00
test-strcspn.c
test-strerror-errno.c
test-string.h
test-strlen.c string: Hook up the default implementation on test-strlen 2023-02-06 16:19:35 -03:00
test-strncasecmp.c
test-strncat.c Fix stringop-overflow warning in test-strncat. 2023-03-02 14:25:34 +01:00
test-strncmp.c string: Hook up the default implementation on test-strncmp 2023-02-06 16:19:35 -03:00
test-strncpy.c
test-strnlen.c string: Hook up the default implementation on test-strnlen 2023-02-06 16:19:35 -03:00
test-strpbrk.c
test-strrchr.c string: Hook up the default implementation on test-strrchr 2023-02-06 16:19:35 -03:00
test-strspn.c
test-strstr.c
testcopy.c
tester.c
tst-bswap.c
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
wordcopy.c
xpg-strerror.c