aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJan D2015-03-22 10:14:36 +0100
committerJan D2015-03-22 10:14:36 +0100
commit32315502e0335f7840cdaa68d3fa3aa385a6943d (patch)
treee2522568d92802cc27d7f3a60140d580e7e96d3f /src
parent6e1fac9bc7d28a7c7ebdc612673736c9825606e0 (diff)
downloademacs-32315502e0335f7840cdaa68d3fa3aa385a6943d.tar.gz
emacs-32315502e0335f7840cdaa68d3fa3aa385a6943d.zip
Fixes: debbugs:20156
* src/fontset.c (fontset_pattern_regexp): Replace + 1 with + 3 for regexsize.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/fontset.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 5aa248e91b9..79feb611f3d 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12015-03-22 Jan Djärv <jan.h.d@swipnet.se>
2
3 * fontset.c (fontset_pattern_regexp): Replace + 1 with + 3 for
4 regexsize (Bug#20156).
5
12015-03-21 Eli Zaretskii <eliz@gnu.org> 62015-03-21 Eli Zaretskii <eliz@gnu.org>
2 7
3 * emacs.c (synchronize_locale) [WINDOWSNT]: Ignore 'category' and 8 * emacs.c (synchronize_locale) [WINDOWSNT]: Ignore 'category' and
diff --git a/src/fontset.c b/src/fontset.c
index c0303fa5a34..763d84628b5 100644
--- a/src/fontset.c
+++ b/src/fontset.c
@@ -1074,7 +1074,7 @@ fontset_pattern_regexp (Lisp_Object pattern)
1074 expression matching. */ 1074 expression matching. */
1075 ptrdiff_t regexsize = (SBYTES (pattern) 1075 ptrdiff_t regexsize = (SBYTES (pattern)
1076 + (ndashes < 14 ? 2 : 5) * nstars 1076 + (ndashes < 14 ? 2 : 5) * nstars
1077 + 2 * nescs + 1); 1077 + 2 * nescs + 3);
1078 USE_SAFE_ALLOCA; 1078 USE_SAFE_ALLOCA;
1079 p1 = regex = SAFE_ALLOCA (regexsize); 1079 p1 = regex = SAFE_ALLOCA (regexsize);
1080 1080