[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-24 b66511f: Backport regexp stack overflow fix from
From: |
Tassilo Horn |
Subject: |
[Emacs-diffs] emacs-24 b66511f: Backport regexp stack overflow fix from emacs-24. |
Date: |
Thu, 27 Nov 2014 08:39:03 +0000 |
branch: emacs-24
commit b66511f7680a195c5f56f2275f21e1d571706fba
Author: Leonard Randall <address@hidden>
Date: Thu Nov 27 09:38:21 2014 +0100
Backport regexp stack overflow fix from emacs-24.
* textmodes/reftex-parse.el (reftex-using-biblatex-p): Make search
for comment lines non-greedy and stopping at newlines to fix stack
overflows with large files. [Backport]
Signed-off-by: Tassilo Horn <address@hidden>
---
lisp/ChangeLog | 6 ++++++
lisp/textmodes/reftex-parse.el | 2 +-
2 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index af75f8d..d88ecfe 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
+2014-11-27 Leonard Randall <address@hidden>
+
+ * textmodes/reftex-parse.el (reftex-using-biblatex-p): Make search
+ for comment lines non-greedy and stopping at newlines to fix stack
+ overflows with large files. [Backport]
+
2014-11-27 Fabián Ezequiel Gallina <address@hidden>
* progmodes/python.el (python-shell-completion-setup-code): Use
diff --git a/lisp/textmodes/reftex-parse.el b/lisp/textmodes/reftex-parse.el
index 71bec89..a557211 100644
--- a/lisp/textmodes/reftex-parse.el
+++ b/lisp/textmodes/reftex-parse.el
@@ -357,7 +357,7 @@ of master file."
(member "biblatex" TeX-active-styles)
;; poor-man's check...
(save-excursion
- (re-search-forward "^[^%]*\\\\usepackage.*{biblatex}" nil t))))
+ (re-search-forward "^[^%\n]*?\\\\usepackage.*{biblatex}" nil t))))
(defun reftex-locate-bibliography-files (master-dir &optional files)
"Scan buffer for bibliography macros and return file list."
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-24 b66511f: Backport regexp stack overflow fix from emacs-24.,
Tassilo Horn <=