GNU bug report logs -
#23040
"Stack overflow in regexp matcher" when entering group
Previous Next
Reported by: Nikolaus Rath <Nikolaus <at> rath.org>
Date: Thu, 17 Mar 2016 15:25:01 UTC
Severity: normal
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 23040 <at> debbugs.gnu.org (full text, mbox):
The problem here is that recently some spam has started to come with
extremely long "References" headers, and that the regular expression
used in one of my scoring rules is sub-optimal when applied to such long
strings.
In particular, the leading dot in "<.+@[a-z0-9]+\\.rath\\.org>" first
matches the entire reference header, and then emacs presumably has to
backtrack character by character (or something like that).
Fixing the rule by restricting the match to one message id fixes the
problem: "<[^<>@]+@[a-z0-9]+\\.rath\\.org>"
Best,
-Nikolaus
--
GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F
Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F
»Time flies like an arrow, fruit flies like a Banana.«
This bug report was last modified 8 years and 176 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.