Module Name: src
Committed By: fox
Date: Sun Jun 7 23:20:52 UTC 2020
Modified Files:
src/tests/lib/libarchive: Makefile
Log Message:
tests/lib/libarchive: Suppress -Werror=stringop-truncation error
This logic correctly uses strncpy(3) to fully initialize a fixed-width field,
and also ensures
NUL-termination on the next line as other users of the field expect.
Add -Werror=stringop-truncation to prevent build failure, when run with
MKSANITIZER=yes.
Error was reported when build.sh was run with MKSANITIZER=yes flag.
Reviewed by: kamil@
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/tests/lib/libarchive/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tests/lib/libarchive/Makefile
diff -u src/tests/lib/libarchive/Makefile:1.4 src/tests/lib/libarchive/Makefile:1.5
--- src/tests/lib/libarchive/Makefile:1.4 Sun Jan 19 17:36:57 2020
+++ src/tests/lib/libarchive/Makefile Sun Jun 7 23:20:52 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2020/01/19 17:36:57 christos Exp $
+# $NetBSD: Makefile,v 1.5 2020/06/07 23:20:52 fox Exp $
NOMAN=
@@ -609,4 +609,5 @@ list.h: ${SRCS.h_libarchive} Makefile
${TOOL_GREP} -v _truncated_filter_ | \
${TOOL_GREP} -v test_compat_pax_libarchive_2x > ${.TARGET}
+COPTS.test_archive_string_conversion.c+= ${GCC_NO_STRINGOP_TRUNCATION}