[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: |
Noam Postavsky |
Subject: |
bug#21160: 24.5; message-goto-body crashes with moderately large headers |
Date: |
Thu, 26 Jan 2017 15:21:49 -0500 |
retitle 21160 message-goto-body overflows regex stack with large headers
quit
On Thu, Jan 26, 2017 at 2:55 PM, Lars Ingebrigtsen <larsi@gnus.org> wrote:
> 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'm unable to reproduce this bug on the current Emacs trunk. It seems
> to do the right thing here...
>
The regex stack limit is greatly increased (*16, I think) on master.
Might still trigger with a larger text.