diff options
author | Karl Williamson <public@khwilliamson.com> | 2011-02-26 16:26:22 -0700 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2011-02-26 16:36:01 -0700 |
commit | 4d919e5b5b77044f49e291c3d7df6a8cc423b9f5 (patch) | |
tree | b59aee6f86cca44426b2026f8f065d9c7ebe1293 /regexec.c | |
parent | 542f72439b96cee2ffeb944ed4d6710d4396f529 (diff) | |
download | perl-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */ |