From 4d919e5b5b77044f49e291c3d7df6a8cc423b9f5 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Sat, 26 Feb 2011 16:26:22 -0700 Subject: [PATCH] regexec.c: Array declared 1 too small The bounds of this array were being exceeded causing smoke failures on netbsd --- regexec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/regexec.c b/regexec.c index a4e9ed2..35f0f51 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 */ -- 2.7.4