From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#75322: SAFE_ALLOCA assumed to root Lisp_Objects/SSDATA(string) Date: Sun, 05 Jan 2025 12:21:14 +0200 Message-ID: <86sepx8sth.fsf@gnu.org> References: <87jzbbke6u.fsf@protonmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26518"; mail-complaints-to="usenet@ciao.gmane.io" Cc: pipcet@protonmail.com, 75322@debbugs.gnu.org To: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 05 11:22:25 2025 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tUNm4-0006lC-5H for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 05 Jan 2025 11:22:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tUNlm-00088W-Ae; Sun, 05 Jan 2025 05:22:06 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tUNlj-00088A-4j for bug-gnu-emacs@gnu.org; Sun, 05 Jan 2025 05:22:03 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tUNli-0002TG-Si for bug-gnu-emacs@gnu.org; Sun, 05 Jan 2025 05:22:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-version:References:In-Reply-To:From:Date:To:Subject; bh=D7TxjScJT0tYZ91A+YcPwifHIHsCs7wjBMMJjFN9slc=; b=FZB5+OBXCfNLv6fYbYp/KCLRimDQPervXk5DFYx544pCrR8yG8/94+fvRcDXndiOcx+SBV/u4shuqCaylde2cBL0dTDF9cQYooAgvirAW3/1UX/T+sjSZwGsgyYScK5H1EF8MmC6Qq57x56SeMmAl5941XkJZi/G0rUx3B2bQhkbHTUoJoho+JmCf/5tG8XHIzbkgrSM59obfaqd4fbQnEvx7XcYDq7Rthh9X4bs8VEFjfJKGXXzaCJ7qzh13FvtgBtgKKtw3D4wufUTxkoFMibxtpy+y3fliB17/ycU5SsQ4hrDwe36wJ486WwVGlrAO9XjRITe19WiIcgtZh0isw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tUNli-0001TI-OJ for bug-gnu-emacs@gnu.org; Sun, 05 Jan 2025 05:22:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 05 Jan 2025 10:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 75322 X-GNU-PR-Package: emacs Original-Received: via spool by 75322-submit@debbugs.gnu.org id=B75322.17360724865570 (code B ref 75322); Sun, 05 Jan 2025 10:22:02 +0000 Original-Received: (at 75322) by debbugs.gnu.org; 5 Jan 2025 10:21:26 +0000 Original-Received: from localhost ([127.0.0.1]:59992 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tUNl8-0001Rm-1v for submit@debbugs.gnu.org; Sun, 05 Jan 2025 05:21:26 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45708) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tUNl5-0001RV-8m for 75322@debbugs.gnu.org; Sun, 05 Jan 2025 05:21:24 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tUNkz-0002RT-Hi; Sun, 05 Jan 2025 05:21:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=D7TxjScJT0tYZ91A+YcPwifHIHsCs7wjBMMJjFN9slc=; b=n202xm/JLkE0a4iNZBCT 8pAnAm4QlsLVt8zY5Y2hsVpvZYXesgjFCcZjeOzDVCJygLgHc915eJr2JqzGhiF2HhWi+wmWS0b7r xaJwLsBE3L0LuXC/Id28N1h0UO0+V7ipYMdxDuO+jlSGdBD/8z8Z3qI5q2UFX9Exia+QZoXbIAOWx 3EAIfev+c1+I+F7qGUSSXayEGeZmNzvfFkf9ldHh2+oAwrn3sgx0H08Q6xh34lXctnoxPXtnSVNxQ E7deS3rtvQUV4pSarAD33mbR4ffB6Sy/cf9VkMltzPhy8btjocWgfEQqNU6ecX6VyFFMkp6vRNHNv kSgS25baD+1HRg==; In-Reply-To: (message from Gerd =?UTF-8?Q?M=C3=B6llmann?= on Sun, 05 Jan 2025 07:59:32 +0100) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:298527 Archived-At: > Cc: 75322@debbugs.gnu.org > From: Gerd Möllmann > Date: Sun, 05 Jan 2025 07:59:32 +0100 > > Gerd Möllmann writes: > > > Just want to add that all SAFE_NALLOC uses should be checked in > > scratch/igc. For example, set_overlays_multibyte uses it to store > > itree_node *, and itree_node is in MPS. > > > > I think I'll just make it allocate a root in my Emacs. That's the least > > work. > > Please find attached what I'm using now in my Emacs, in addition to your > xstrdup commit. These two are alternatives, right? IOW, we should use one or the other in each specific case, is that correct?