unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Andreas Schwab <schwab@suse.de>
Cc: 21160@debbugs.gnu.org, Marcin Borkowski <mbork@mbork.pl>,
	David Bremner <david@tethera.net>
Subject: bug#21160: 24.5; message-goto-body crashes with moderately large headers
Date: Thu, 26 Jan 2017 20:52:51 +0100	[thread overview]
Message-ID: <87r33pmwdo.fsf@gnus.org> (raw)
In-Reply-To: <87mvydhehk.fsf@maritornes.cs.unb.ca>

Andreas Schwab <schwab@suse.de> writes:

>>> 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"

It doesn't seem to do the right ting with empty lines as separators...

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





  reply	other threads:[~2017-01-26 19:52 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-30 15:06 bug#21160: 24.5; message-goto-body crashes with moderately large headers David Bremner
2016-05-04  7:32 ` Marcin Borkowski
2016-05-04  8:24   ` Andreas Schwab
2017-01-26 19:52     ` Lars Ingebrigtsen [this message]
2016-05-04 15:05   ` Eli Zaretskii
2016-05-04 20:02     ` Marcin Borkowski
2017-01-26 19:55   ` Lars Ingebrigtsen
2017-01-26 20:21     ` Noam Postavsky
2017-01-26 20:25       ` Lars Ingebrigtsen
2017-01-26 20:12 ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r33pmwdo.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=21160@debbugs.gnu.org \
    --cc=david@tethera.net \
    --cc=mbork@mbork.pl \
    --cc=schwab@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).