Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Oct 2022 23:11:27 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 996ee9659763 - main - libbegemot: Disable -Wuse-after-free.
Message-ID:  <202210032311.293NBRHo065720@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=996ee965976379f0455c5f59b1cf9c82bc2e5e1b

commit 996ee965976379f0455c5f59b1cf9c82bc2e5e1b
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-10-03 23:10:43 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-10-03 23:10:43 +0000

    libbegemot: Disable -Wuse-after-free.
    
    The _xrealloc() function prints pointer values for internal assertion
    failures and in one case does so after it has freed the pointer.
    
    Reviewed by:    emaste
    Differential Revision:  https://reviews.freebsd.org/D36819
---
 lib/libbegemot/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/libbegemot/Makefile b/lib/libbegemot/Makefile
index c5d3bb8badc2..6ce1310ae97b 100644
--- a/lib/libbegemot/Makefile
+++ b/lib/libbegemot/Makefile
@@ -25,3 +25,5 @@ MLINKS=	rpoll.3 poll_register.3		\
 	rpoll.3 poll_dispatch.3
 
 .include <bsd.lib.mk>
+
+CWARNFLAGS+=	${NO_WUSE_AFTER_FREE}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202210032311.293NBRHo065720>