summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2011-02-26 16:26:22 -0700
committerKarl Williamson <public@khwilliamson.com>2011-02-26 16:36:01 -0700
commit4d919e5b5b77044f49e291c3d7df6a8cc423b9f5 (patch)
treeb59aee6f86cca44426b2026f8f065d9c7ebe1293 /regexec.c
parent542f72439b96cee2ffeb944ed4d6710d4396f529 (diff)
downloadperl-4d919e5b5b77044f49e291c3d7df6a8cc423b9f5.tar.gz
regexec.c: Array declared 1 too small
The bounds of this array were being exceeded causing smoke failures on netbsd
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/regexec.c b/regexec.c
index a4e9ed20d0..35f0f51f2e 100644
--- a/regexec.c
+++ b/regexec.c
@@ -6700,7 +6700,7 @@ S_reginclass(pTHX_ const regexp * const prog, register const regnode * const n,
* has array element 1 contain the number of bytes in the
* source that folded to it; the 2nd is the cumulative
* number to match it; ... */
- U8 map_fold_len_back[UTF8_MAX_FOLD_CHAR_EXPAND] = { 0 };
+ U8 map_fold_len_back[UTF8_MAX_FOLD_CHAR_EXPAND+1] = { 0 };
U8 folded[UTF8_MAXBYTES_CASE+1];
STRLEN foldlen = 0; /* num bytes in fold of 1st char */
STRLEN foldlen_for_av; /* num bytes in fold of all chars */