Follow-up Comment #1, bug #57277 (project findutils): First of all, the fix for this should go into gnulib --> adding their ML.
Then, this test actually wants to verify the behavior of that function when called with a NULL value (it should return NULL and set errno to EINVAL). Therefore, the test needs to suppress that specific sanitizer error. I don't have a GCC 10, so does something like the following work? a/tests/test-canonicalize-lgpl.c b/tests/test-canonicalize-lgpl.c index 4ce06e46c..4e7d47c57 100644 --- a/tests/test-canonicalize-lgpl.c +++ b/tests/test-canonicalize-lgpl.c @@ -39,6 +39,9 @@ SIGNATURE_CHECK (canonicalize_file_name, char *, (const char *)); #define BASE "t-can-lgpl.tmp" +/* Suppress -fsanitize=null error - seen on GCC 10 - for this test. */ +extern char *canonicalize_file_name (const char *) __attribute__((no_sanitize("null"))); + int main (void) { _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?57277> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/