Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/cddl/osnet/usr.bin/ctfmerge external/cddl/osnet: Su...
details: https://anonhg.NetBSD.org/src/rev/59efa71582f2
branches: trunk
changeset: 1010817:59efa71582f2
user: fox <fox%NetBSD.org@localhost>
date: Sun Jun 07 23:26:54 2020 +0000
description:
external/cddl/osnet: 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:
external/cddl/osnet/usr.bin/ctfmerge/Makefile | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (16 lines):
diff -r 859afa90deca -r 59efa71582f2 external/cddl/osnet/usr.bin/ctfmerge/Makefile
--- a/external/cddl/osnet/usr.bin/ctfmerge/Makefile Sun Jun 07 23:20:52 2020 +0000
+++ b/external/cddl/osnet/usr.bin/ctfmerge/Makefile Sun Jun 07 23:26:54 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2018/05/28 21:05:11 chs Exp $
+# $NetBSD: Makefile,v 1.11 2020/06/07 23:26:54 fox Exp $
# $FreeBSD: head/cddl/usr.bin/ctfmerge/Makefile 314654 2017-03-04 11:30:04Z ngie $
@@ -36,4 +36,6 @@
DPADD+=${LIBPTHREAD}
.endif
+COPTS.ctfmerge.c+= ${GCC_NO_STRINGOP_TRUNCATION}
+
.include <bsd.prog.mk>
Home |
Main Index |
Thread Index |
Old Index