Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/xlint lint: enable memory debugging



details:   https://anonhg.NetBSD.org/src/rev/d98138916fdb
branches:  trunk
changeset: 362037:d98138916fdb
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Feb 26 18:35:01 2022 +0000

description:
lint: enable memory debugging

Filling deallocated memory with 0x00 may hide errors, so rather fill
with 0xA5.

While this doesn't change anything about the test about the assertion
failure after a do-while loop (see t_integration.sh, test case
assertion_failures), it may detect other similar bugs earlier.

diffstat:

 usr.bin/xlint/Makefile.inc |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 144fa30adfca -r d98138916fdb usr.bin/xlint/Makefile.inc
--- a/usr.bin/xlint/Makefile.inc        Sat Feb 26 17:02:47 2022 +0000
+++ b/usr.bin/xlint/Makefile.inc        Sat Feb 26 18:35:01 2022 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.18 2022/02/07 21:57:47 rillig Exp $
+#      $NetBSD: Makefile.inc,v 1.19 2022/02/26 18:35:01 rillig Exp $
 
 .include <bsd.own.mk>
 
@@ -16,6 +16,7 @@
 
 CPPFLAGS+=     -I${.CURDIR}/../arch/${ARCHSUBDIR}
 CPPFLAGS+=     -I${.CURDIR}/../common
+CPPFLAGS+=     -DBLKDEBUG
 
 CLEANFILES+=   *.gcno *.gcda *.gcov
 



Home | Main Index | Thread Index | Old Index