From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Newsgroups: gmane.emacs.bugs Subject: bug#58042: 29.0.50; ASAN use-after-free in re_match_2_internal Date: Wed, 05 Oct 2022 13:10:03 +0200 Message-ID: References: <83edvnv965.fsf@gnu.org> <83pmf6u76i.fsf@gnu.org> <83mtaau43p.fsf@gnu.org> <83ilkytyif.fsf@gnu.org> <877d1ewnx0.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15851"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin) Cc: Eli Zaretskii , 58042@debbugs.gnu.org, Alan Third To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 05 13:11:15 2022 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 1og2J0-0003ww-Ub for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 05 Oct 2022 13:11:14 +0200 Original-Received: from localhost ([::1]:55334 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1og2Iz-0000xf-RZ for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 05 Oct 2022 07:11:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38324) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1og2Io-0000wN-Uj for bug-gnu-emacs@gnu.org; Wed, 05 Oct 2022 07:11:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56978) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1og2Io-0007qf-6Y for bug-gnu-emacs@gnu.org; Wed, 05 Oct 2022 07:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1og2In-0006gz-S5 for bug-gnu-emacs@gnu.org; Wed, 05 Oct 2022 07:11:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Oct 2022 11:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58042 X-GNU-PR-Package: emacs Original-Received: via spool by 58042-submit@debbugs.gnu.org id=B58042.166496821425622 (code B ref 58042); Wed, 05 Oct 2022 11:11:01 +0000 Original-Received: (at 58042) by debbugs.gnu.org; 5 Oct 2022 11:10:14 +0000 Original-Received: from localhost ([127.0.0.1]:56052 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1og2I2-0006fC-L8 for submit@debbugs.gnu.org; Wed, 05 Oct 2022 07:10:14 -0400 Original-Received: from mail-ed1-f54.google.com ([209.85.208.54]:37719) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1og2Hz-0006eq-4c for 58042@debbugs.gnu.org; Wed, 05 Oct 2022 07:10:12 -0400 Original-Received: by mail-ed1-f54.google.com with SMTP id w10so9589197edd.4 for <58042@debbugs.gnu.org>; Wed, 05 Oct 2022 04:10:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date; bh=pFKyRvxNzpDDEzRBsReciFXdpNod3o/6NZrRH7FctMo=; b=K4lmYaNjQSI3NpOrX9RYY3nwbNwCWlOS66Idc+h+IbPvdIsxPIS3oAY6Q9qMyJv+et W2xIJI+RLqg8j5kt4RW0q7jcWSSnRvtmX86CP2CoTgBZ8JW1DOOho01oGC/AXlgRKOcP cFVY2mRmxLMKlfFs1MiliMjAp7RUs8qBwteiI8Hp8XR2u1AKOfL63RrP6toHsuZo+47w SZivCkhyeZit9yCi6nKGz2LEP4Dm781DjaizUG7mW/ZA9CY2oNhOEdp0yty/Wg+kkeaw kVt40WU9NjMeCXy7vfmItYEC0j1pcfoloNabWw2sY4kqglyV6+JzlalADjxfHEnFutpD cJwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date; bh=pFKyRvxNzpDDEzRBsReciFXdpNod3o/6NZrRH7FctMo=; b=sxVQpjp61h9rxX5WeGG5zOdToFLG/G4yPAbYsEgz1d9lVF1SPpwQcD9pTCfUb1lBaF V+zXkciTc1PUO4vbbg18eEV7UIfD7hKrqZwakATazmItn1BaPpcz1SAmk5Ilxxnc/IvT 65WV7SV1FmxC+4GWHQwJ3jmdMe9d8OMRWqtolWjCGGjr5mkkQ6EDwXaGlztDwEGRxu+B Uou/thU5iuE2HHc6qfxW4d4yXbquhng3/rJd7HIKkdNrZ2lxfSQUdKHCsPsugXRp5e5b 1Lrncn9hlBnswO1mcMQQagYaXSJ9L1d5f7c5ERMWh5asJyF/U/QQPUV1yF+9e8ujkCjr 0Rug== X-Gm-Message-State: ACrzQf3mga+9XTn8CSejvTu88LLXha7bZA4O0qG5uqJN/Q0ldMxD6FOm M5j2LRhgCdte+61+qd150X8= X-Google-Smtp-Source: AMsMyM7lGJ2NMfpgd7J6c1oAtDR7ZlWQ3077gyPXAxV1gqLMNbcYauE8oVlyXCJQxY44xmELxw+tYQ== X-Received: by 2002:a05:6402:1e8d:b0:454:79a9:201f with SMTP id f13-20020a0564021e8d00b0045479a9201fmr28512713edf.176.1664968205217; Wed, 05 Oct 2022 04:10:05 -0700 (PDT) Original-Received: from Mini.fritz.box (pd9e36cc6.dip0.t-ipconnect.de. [217.227.108.198]) by smtp.gmail.com with ESMTPSA id r2-20020a17090609c200b00730b3bdd8d7sm8573145eje.179.2022.10.05.04.10.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Oct 2022 04:10:04 -0700 (PDT) In-Reply-To: ("Gerd =?UTF-8?Q?M=C3=B6llmann?="'s message of "Wed, 05 Oct 2022 12:49:05 +0200") 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" Xref: news.gmane.io gmane.emacs.bugs:244514 Archived-At: Can somone please help me understand how this works? Let's say we are in memq called for list L. Fmemq uses FOR_EACH_TAIL, which can call maybe_quit, which executes arbitrary Lisp, which can modify L. And probably similarly in another 100 places. I don't get it.