From nobody Fri Nov 11 18:36:57 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4N86qt0zYvz4dbcR; Fri, 11 Nov 2022 18:36:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4N86qt00xPz3wMm; Fri, 11 Nov 2022 18:36:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668191818; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LtbLrQjDZggv0k/PYtZVNmRjzpQgDXLCuHrPcfg93bs=; b=SIN+w7AYl2ACwTANhS0BRCO/K6Mgnxy2LftBGb5ZzRg2Vy+G7IccjlnYFbHoIDr5X+iQ0t eQJAwRcLt5sEqxkv42PR88LPGpLYTipavf3qVI7YHK8fbBF5P4KrVgsf+S/NUG24QOcU69 q4UGSSYt2kAAG5gMCQqs4W02LFx5v6YImXC3Oc90KAw6szvRhVgufR0heQjwl3NBhXBKIs 8u0YTPDfynA1nPR4dPD4XzkBQkpArd/05Lo8Z+USVjwG02CuJSa/qjNQYEWE+W9NFfPSOE +fGDfPQBrb3/CvzKvOLBynYq5vtgDHkKusnxCKeXavYnbM5PHEcNU7M3n/EcSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668191818; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LtbLrQjDZggv0k/PYtZVNmRjzpQgDXLCuHrPcfg93bs=; b=lCBywLaxdJA2krLWfWuq5oAznaeu+JePaD67f5mbdiJAiV5DUjv2oGxC8t7FCYxZDTu4NG tbslo7SKaxgI9GE7aexRubOZndrJPorYuCbJQUl5gWTJP7Y0BUfc0bmxd9vVL/17EuobE1 0KHhm07oWmd5Zwdsq+oypy3Co9jWpYaZJJHsppbe0kNxcID+0Fyzqs6IgzgzwNSO2aI/u1 77U0iJJW0/UHUzyXUCoay4aNVO86OXwTjNATxfsEdKFmxW6rObcdpFVLLURE4NSdKbbtPM 1QLa5Mo7qFFRxwLLY0Oulq0dU08h0MohpR7i29D4AcZU2w8D7IXlarCSjJMV6w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1668191818; a=rsa-sha256; cv=none; b=yUQG1z4x31y0FRJRrOblIx7cCNMOdTC3rAV/mMicDkj+F+Dwesj8OAQN82kZavF5XSWkwC y/NskFdoIIg55uj3VKDmO02Qbj7RtqFI11UKWZLNplSUrEwM/ooZAKavh2/M5OzlGFBreK HPzwX0LWMhNYlWwX+D6BxJkbyzrtEj72JGXeUO7CPkPoQyL4HMjNtwULi9/VfFRJFEoVYP 8NLFtcOl4W94hUK8RI//Y6kIdq9SjK9u6N5JvdO88IAbfwgsgEY6cbO+oPY8yUEjSWbsK3 SangaH7tUnl6OaSHfxCSxBNqUQcOqoKj9eh+llD5LQYQI3r/J8WRvbr6vUz93w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4N86qs66WqztNs; Fri, 11 Nov 2022 18:36:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2ABIavVq004286; Fri, 11 Nov 2022 18:36:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2ABIavgU004285; Fri, 11 Nov 2022 18:36:57 GMT (envelope-from git) Date: Fri, 11 Nov 2022 18:36:57 GMT Message-Id: <202211111836.2ABIavgU004285@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: 65e28bfeaacc - stable/13 - libbegemot: Disable -Wuse-after-free. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 65e28bfeaaccfc9b515f52da13ab360546362f52 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=65e28bfeaaccfc9b515f52da13ab360546362f52 commit 65e28bfeaaccfc9b515f52da13ab360546362f52 Author: John Baldwin AuthorDate: 2022-10-03 23:10:43 +0000 Commit: John Baldwin CommitDate: 2022-11-11 18:18:54 +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 (cherry picked from commit 996ee965976379f0455c5f59b1cf9c82bc2e5e1b) --- 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 + +CWARNFLAGS+= ${NO_WUSE_AFTER_FREE}