From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#13802: stack overflow in mm-add-meta-html-tag Date: Mon, 25 Feb 2013 02:20:39 +0200 Organization: JURTA Message-ID: <87y5edmdxw.fsf@mail.jurta.org> References: <87wqtyrry6.fsf@zigzag.favinet> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1361752477 31717 80.91.229.3 (25 Feb 2013 00:34:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Feb 2013 00:34:37 +0000 (UTC) Cc: 13802@debbugs.gnu.org To: Thien-Thi Nguyen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 25 01:35:00 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U9m20-0008OT-4d for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Feb 2013 01:35:00 +0100 Original-Received: from localhost ([::1]:58358 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9m1f-0007JD-4E for geb-bug-gnu-emacs@m.gmane.org; Sun, 24 Feb 2013 19:34:39 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:37244) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9m1b-0007HX-KI for bug-gnu-emacs@gnu.org; Sun, 24 Feb 2013 19:34:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U9m1a-00084s-Gp for bug-gnu-emacs@gnu.org; Sun, 24 Feb 2013 19:34:35 -0500 Original-Received: from [140.186.70.43] (port=42895 helo=debbugs.gnu.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9m1a-00082J-DV for bug-gnu-emacs@gnu.org; Sun, 24 Feb 2013 19:34:34 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1U9m2z-0003Tz-R4; Sun, 24 Feb 2013 19:36:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Mon, 25 Feb 2013 00:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13802 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: Original-Received: via spool by 13802-submit@debbugs.gnu.org id=B13802.136175254213363 (code B ref 13802); Mon, 25 Feb 2013 00:36:01 +0000 Original-Received: (at 13802) by debbugs.gnu.org; 25 Feb 2013 00:35:42 +0000 Original-Received: from localhost ([127.0.0.1]:48358 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U9m2g-0003TU-HW for submit@debbugs.gnu.org; Sun, 24 Feb 2013 19:35:42 -0500 Original-Received: from ps18281.dreamhost.com ([69.163.218.105]:35503 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U9m2M-0003T3-Ag for 13802@debbugs.gnu.org; Sun, 24 Feb 2013 19:35:41 -0500 Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id B3735258B92902; Sun, 24 Feb 2013 16:33:44 -0800 (PST) In-Reply-To: <87wqtyrry6.fsf@zigzag.favinet> (Thien-Thi Nguyen's message of "Sun, 24 Feb 2013 10:17:53 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:71760 Archived-At: > I see a "Stack overflow in regexp matcher" error traceable back to > lisp/gnus/mm-decode.el func =E2=80=98mm-add-meta-html-tag=E2=80=99 frag= ment: > > (re-search-forward "\ > text/\\(\\sw+\\)\\(?:\;\\s-*charset=3D\\(.+\\)\\)?[\"'][^>]*>" nil t) > > To allow the user (not me) to continue, i kludged the form to be: > > (ignore-errors > (re-search-forward "..." nil t)) > > that is, wrapping w/ =E2=80=98ignore-errors=E2=80=99. Is there a bette= r solution? `sgml-html-meta-auto-coding-function' uses a similar regexp that doesn't fail with stack overflow. You could get some ideas from this regexp and sync the regexp in `mm-add-meta-html-tag' with it.