diff options
author | Bram Moolenaar <bram@vim.org> | 2010-09-14 10:55:47 +0200 |
---|---|---|
committer | Bram Moolenaar <bram@vim.org> | 2010-09-14 10:55:47 +0200 |
commit | 91285e39557433fc96e114e0eb17765eb55acfa6 (patch) | |
tree | 620e619b46431f5e7cb829c11ed07e29631bb18e | |
parent | 112994b2e2fd9dd685ab2add986739c6fb43d9a7 (diff) | |
download | vim-91285e39557433fc96e114e0eb17765eb55acfa6.tar.gz |
Problem: Crash when using very long regexp. (Peter Odding)
Solution: Reset reg_toolong. (Carlo Teubner)
-rw-r--r-- | src/regexp.c | 1 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/regexp.c b/src/regexp.c index 480f4cc6..57ea7369 100644 --- a/src/regexp.c +++ b/src/regexp.c @@ -3538,6 +3538,7 @@ vim_regexec_both(line, col, tm) regline = line; reglnum = 0; + reg_toolong = FALSE; /* Simplest case: Anchored match need be tried only once. */ if (prog->reganch) diff --git a/src/version.c b/src/version.c index f41de43b..3b50ffb9 100644 --- a/src/version.c +++ b/src/version.c @@ -715,6 +715,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 4, +/**/ 3, /**/ 2, |