From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#54218: [PATCH] Magic number regexp shouldn't match beyond end-of-line. Date: Fri, 04 Mar 2022 16:37:43 +0100 Message-ID: <87tucdenjs.fsf@gnus.org> References: <1453034b-77c7-4c25-7f6e-0ba14090cf12@gmail.com> <87ilsvhzbw.fsf@gnus.org> <7e9735e1-308a-237b-0466-f702a4e94a59@gmail.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="22694"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 54218@debbugs.gnu.org To: "Andrew L. Moore" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 04 16:41:48 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 1nQA3w-0005je-2g for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 04 Mar 2022 16:41:48 +0100 Original-Received: from localhost ([::1]:35122 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nQA3v-0005et-1V for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 04 Mar 2022 10:41:47 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:60082) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nQA0O-0007s9-Df for bug-gnu-emacs@gnu.org; Fri, 04 Mar 2022 10:38:08 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52770) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nQA0I-0007ZH-M6 for bug-gnu-emacs@gnu.org; Fri, 04 Mar 2022 10:38:08 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nQA0I-0005Hb-F2 for bug-gnu-emacs@gnu.org; Fri, 04 Mar 2022 10:38:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Mar 2022 15:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54218 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 54218-submit@debbugs.gnu.org id=B54218.164640827320292 (code B ref 54218); Fri, 04 Mar 2022 15:38:02 +0000 Original-Received: (at 54218) by debbugs.gnu.org; 4 Mar 2022 15:37:53 +0000 Original-Received: from localhost ([127.0.0.1]:46667 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nQA08-0005HE-Uq for submit@debbugs.gnu.org; Fri, 04 Mar 2022 10:37:53 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:54226) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nQA07-0005H2-Sk for 54218@debbugs.gnu.org; Fri, 04 Mar 2022 10:37:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=PzMm+ADJm/xaCF3XVlkz+d2Xkj3Ofc8URaoCFFDKUK8=; b=JgVokubAnOwqcygmlyfgVVxsX4 2EUrB0qjHZUFxx8VIaOpyPwItQh1REowcP+9cOpAeok49NJYgudcfdVgG1ref+vWJBFlTKjOzDkIZ QmGId/9cVlAbA9me8hsRMMo6Leb5Q15UgaiLjEJRMNLmUAeH+/sorNwAeJ3/Rsuy1xWY=; Original-Received: from [84.212.220.105] (helo=giant) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nQ9zz-0005xs-Uf; Fri, 04 Mar 2022 16:37:46 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAGFBMVEUuKCedNzTFTTuo SDfOVDRhMi7hnlv///+Kn9dZAAAAAWJLR0QHFmGI6wAAAAd0SU1FB+YDBA8OLRQLiX4AAAGlSURB VDjLfdLLcqswDAZgdzrsYxy6x3bZgyj7Ujfr6OQo+w6p3/8RKttcymXqTWb4Isn6QYhfJwfQfFw4 Yg/uEBrrRqCMrhOoS9tDO4KU+nWuuDzO7+cRtHXlDNV39j5VcM9igX6YW+XOvS3QeWWnW6Hrp+m5 ffE4gyC5wL2lBYQ6sUbQXTZDwb0W4J9peCmtO9E1gSGiCTgda2QRxyi4+K829RIq5FmmVW5Q0ccE 4bkeV7yZyltu1ccFA5woQdP5gQt6G0LUmkckQIYwI4EqJZrUC3UHcLZ8nRh7QahTXGhAZOf0dgUS Ya5T8gj8h/8BbIgkQ9DmOgLRv1+gdF9f43DtfTMDMVj3GWeo4f4RN1vgFKEZYIhgYyveJV4Laxi+ +rlCZCTHBWtjHnGG1qsPDusaQB2BlG8KOaMtZCEG0WjTbOAJwobp017BMyjw3pgDKMHfh33FLa9r 7x8QZA0qQMXQbK6rpOqq1oSSFRAyaNgDvxBoXl4x9NqAAuCPkQHWICWoQqodcCR1enwE8rCC8/0D omyAIsgDSCX1FrAYS9QecGz2A3DAhqrFV2S3AAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIyLTAzLTA0 VDE1OjE0OjQ1KzAwOjAwy5xp3gAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0wMy0wNFQxNToxNDo0 NSswMDowMLrB0WIAAAAASUVORK5CYII= X-Now-Playing: F-I and Boy Dirt Car's _Third Noise Principle (Formative North American Electronica 1975-1984) (4)_: "Untitled" In-Reply-To: <7e9735e1-308a-237b-0466-f702a4e94a59@gmail.com> (Andrew L. Moore's message of "Thu, 3 Mar 2022 14:57:06 -0500") 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:227995 Archived-At: "Andrew L. Moore" writes: > The other issue that I attributed to the regexp matching beyond > EOL was caused by `replace-match' being called by incorrect or > uninitialized match data. Your patch resolves this as well. Thanks for checking. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no