]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.004 v7.3.004
authorBram Moolenaar <Bram@vim.org>
Tue, 14 Sep 2010 08:55:47 +0000 (10:55 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 14 Sep 2010 08:55:47 +0000 (10:55 +0200)
Problem:    Crash when using very long regexp. (Peter Odding)
Solution:   Reset reg_toolong. (Carlo Teubner)

src/regexp.c
src/version.c

index 480f4cc690db209e96edc34ed7f2d561063d4d2f..57ea7369690d89c9ee19429e256e2df5a327c04e 100644 (file)
@@ -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)
index f41de43b6e1e1d5dc4cb7373d079a6c7b05bfce9..3b50ffb95d336969c2bef17b529e02d819020f51 100644 (file)
@@ -714,6 +714,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4,
 /**/
     3,
 /**/