This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug build/24556] [GCC 9] error: ‘%s’ directive argument is null [-Werror=format-overflow=]


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]