From: Tassilo Horn Date: Sun, 13 Dec 2015 18:41:58 +0000 (+0100) Subject: Improve regex to not trigger stack overflow X-Git-Tag: emacs-25.0.90~475^2 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=223b3f0d845a6a85124c004e6fe03b4bdc4f1e17;p=emacs.git Improve regex to not trigger stack overflow * lisp/textmodes/reftex-vars.el (reftex-label-regexps): Improve regex in order not to trigger a stack overflow in regex matcher with unbalanced brackets (bug#22146). --- diff --git a/lisp/textmodes/reftex-vars.el b/lisp/textmodes/reftex-vars.el index 5683e62493a..fcab1367f7d 100644 --- a/lisp/textmodes/reftex-vars.el +++ b/lisp/textmodes/reftex-vars.el @@ -877,7 +877,7 @@ DOWNCASE t: Downcase words before using them." "\\\\label{\\(?1:[^}]*\\)}" ;; keyvals [..., label = {foo}, ...] forms used by ctable, ;; listings, minted, ... - "\\[[^][]*\\