[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#21160: 24.5; message-goto-body crashes with moderately large headers
From: |
Andreas Schwab |
Subject: |
bug#21160: 24.5; message-goto-body crashes with moderately large headers |
Date: |
Wed, 04 May 2016 10:24:14 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
Marcin Borkowski <mbork@mbork.pl> writes:
> On 2015-07-30, at 17:06, David Bremner <david@tethera.net> wrote:
>
>> This bug originally arose using message-mode to forward a message with
>> mml markup "type=message/rfc822 disposition=inline"
>>
>> Unfortunately I don't have permission to share the test message, but
>> the failure of the corresponding line in message-goto-body can be
>> duplicated as follows.
>>
>> 1) start emacs -Q
>> 2) visit the attached file
>> 3) run M-: (search-forward-regexp "[^:]+:\\([^\n]\\|\n[ \t]\\)+\n\n" nil t)
>
> Confirmed on GNU Emacs 25.1.50.9 (commit fafdfcb). The error message is
> "Stack overflow in regexp matcher".
I think the regexp should be written like this:
"[^:]+:.*\\(\n[ \t].*\\)+\n\n"
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."