Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libarchive tests/lib/libarchive: Suppress -Werror=...
details: https://anonhg.NetBSD.org/src/rev/2464b32f0f90
branches: trunk
changeset: 934237:2464b32f0f90
user: fox <fox%NetBSD.org@localhost>
date: Sun Jun 07 23:20:52 2020 +0000
description:
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@
diffstat:
tests/lib/libarchive/Makefile | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (15 lines):
diff -r 101c12f48dc5 -r 2464b32f0f90 tests/lib/libarchive/Makefile
--- a/tests/lib/libarchive/Makefile Sun Jun 07 23:15:53 2020 +0000
+++ b/tests/lib/libarchive/Makefile Sun Jun 07 23:20:52 2020 +0000
@@ -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 @@
${TOOL_GREP} -v _truncated_filter_ | \
${TOOL_GREP} -v test_compat_pax_libarchive_2x > ${.TARGET}
+COPTS.test_archive_string_conversion.c+= ${GCC_NO_STRINGOP_TRUNCATION}
Home |
Main Index |
Thread Index |
Old Index