This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug build/24556] [GCC 9] error: ‘%s’ directive argument is null [-Werror=format-overflow=]
- From: "wdijkstr at arm dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Thu, 23 May 2019 17:52:15 +0000
- Subject: [Bug build/24556] [GCC 9] error: ‘%s’ directive argument is null [-Werror=format-overflow=]
- Auto-submitted: auto-generated
- References: <bug-24556-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=24556
Wilco <wdijkstr at arm dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |wdijkstr at arm dot com
--- Comment #1 from Wilco <wdijkstr at arm dot com> ---
> do_one_test (impl, s1, s2, fail ? NULL : s1 + len1 - len2);
>grep "do_one_test.*NULL" -R *
benchtests/bench-strstr.c: do_one_test (impl, s1, s2, fail ? NULL : s1 +
len1 - len2);
benchtests/bench-strstr.c: do_one_test (impl, hs, ne, NULL);
benchtests/bench-strstr.c: do_one_test (impl, hs, ne, NULL);
benchtests/bench-strstr.c: do_one_test (impl, hs, ne, NULL);
benchtests/bench-strcasestr.c: do_one_test (impl, s1, s2, fail ? NULL : s1 +
len1 - len2);
string/test-strstr.c: do_one_test (impl, s1, s2, fail ? NULL : s1 + len1 -
len2);
string/test-strcasestr.c: do_one_test (impl, s1, s2, fail ? NULL : s1 + len1
- len2);
There are many more tests/benchmarks which pass NULL, eg. any string function
which can return NULL.
--
You are receiving this mail because:
You are on the CC list for the bug.