From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.emacs.bugs Subject: bug#13802: stack overflow in mm-add-meta-html-tag Date: Sun, 24 Feb 2013 10:17:53 +0100 Message-ID: <87wqtyrry6.fsf@zigzag.favinet> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1361697399 1974 80.91.229.3 (24 Feb 2013 09:16:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 24 Feb 2013 09:16:39 +0000 (UTC) To: 13802@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 24 10:17:02 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 1U9Xhb-0004Al-QW for geb-bug-gnu-emacs@m.gmane.org; Sun, 24 Feb 2013 10:17:00 +0100 Original-Received: from localhost ([::1]:48583 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9XhH-0004tn-6H for geb-bug-gnu-emacs@m.gmane.org; Sun, 24 Feb 2013 04:16:39 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:34562) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9XhA-0004hF-1L for bug-gnu-emacs@gnu.org; Sun, 24 Feb 2013 04:16:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U9Xh8-0003J6-Jr for bug-gnu-emacs@gnu.org; Sun, 24 Feb 2013 04:16:31 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41159) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9Xh8-0003Iz-FZ for bug-gnu-emacs@gnu.org; Sun, 24 Feb 2013 04:16:30 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1U9Xic-0004qS-Eb for bug-gnu-emacs@gnu.org; Sun, 24 Feb 2013 04:18:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Thien-Thi Nguyen Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 24 Feb 2013 09:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 13802 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.136169746918603 (code B ref -1); Sun, 24 Feb 2013 09:18:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 Feb 2013 09:17:49 +0000 Original-Received: from localhost ([127.0.0.1]:46623 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U9XiP-0004q0-AG for submit@debbugs.gnu.org; Sun, 24 Feb 2013 04:17:49 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:51241) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U9XiN-0004pt-1Y for submit@debbugs.gnu.org; Sun, 24 Feb 2013 04:17:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U9Xgq-0003Em-Rd for submit@debbugs.gnu.org; Sun, 24 Feb 2013 04:16:14 -0500 Original-Received: from lists.gnu.org ([208.118.235.17]:57265) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9Xgq-0003Ei-Nj for submit@debbugs.gnu.org; Sun, 24 Feb 2013 04:16:12 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:34345) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9Xgp-0004QI-1F for bug-gnu-emacs@gnu.org; Sun, 24 Feb 2013 04:16:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U9Xgl-0003Cp-Va for bug-gnu-emacs@gnu.org; Sun, 24 Feb 2013 04:16:10 -0500 Original-Received: from smtp206.alice.it ([82.57.200.102]:49881) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9Xgl-0003CN-Ky for bug-gnu-emacs@gnu.org; Sun, 24 Feb 2013 04:16:07 -0500 Original-Received: from zigzag.favinet (79.21.51.130) by smtp206.alice.it (8.6.060.15) id 511D120D016B82E7 for bug-gnu-emacs@gnu.org; Sun, 24 Feb 2013 10:16:06 +0100 Original-Received: from ttn by zigzag.favinet with local (Exim 4.72) (envelope-from ) id 1U9Xih-0008J4-0S for bug-gnu-emacs@gnu.org; Sun, 24 Feb 2013 10:18:07 +0100 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:71743 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 fragment: (re-search-forward "\ ]*>" 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 better so= lution? One idea (untested) is to replace the ".+" (used to match the charset) with a more specific pattern. Perhaps "[^<>]+" or "\\sw+"? Thinking more systematically, maybe Emacs should add a condition =E2=80=98stack-overflow/regexp=E2=80=99 (or something like that) such that = code can =E2=80=98condition-case=E2=80=99 for it and try a fallback path. =2D-=20 Thien-Thi Nguyen ..................................... GPG key: 4C807502 . NB: ttn at glug dot org is not me . . (and has not been since 2007 or so) . . ACCEPT NO SUBSTITUTES . ........... please send technical questions to mailing lists ........... --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAlEp2scACgkQZwMiJEyAdQLC7wCeIjVXhARfEqtpJzx7wLCYbW43 O7wAoLKBgInJuTLFOrjo8KxCdioq4xzC =mDNu -----END PGP SIGNATURE----- --=-=-=--