From 223b3f0d845a6a85124c004e6fe03b4bdc4f1e17 Mon Sep 17 00:00:00 2001 From: Tassilo Horn Date: Sun, 13 Dec 2015 19:41:58 +0100 Subject: [PATCH] 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). --- lisp/textmodes/reftex-vars.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, ... - "\\[[^][]*\\