Subject: Re: bug#53680: Endless loop in peculiar case of string-match and string-match-p 27.02 and 28.0.50

From: Lars Ingebrigtsen <[email-masked]>
Date: Tue, 01 Feb 2022 12:08:40 +0100

Lars Ingebrigtsen <[email-masked]> writes:

> And I can reproduce this on master, too.  Is it a problem with excessive
> backtracking, perhaps?  I let it run for a minute, and it didn't finish
> in that time.

This simplified version also infloops:

(string-match
 "implements\\([\r\t ]*[\\a-zA-Z0-9_]+,?\\)+{$"
 "ariable implements \\Magento\\Framework\\Event\\OberserverInterface\r{\r    public function __construct()\r ")

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no