]> granicus.if.org Git - vim/commitdiff
updated for version 7.4.599 v7.4.599
authorBram Moolenaar <Bram@vim.org>
Tue, 27 Jan 2015 13:40:00 +0000 (14:40 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 27 Jan 2015 13:40:00 +0000 (14:40 +0100)
Problem:    Out-of-memory error.
Solution:   Avoid trying to allocate a negative amount of memory, use size_t
            instead of int. (Dominique Pelle)

src/regexp_nfa.c
src/version.c

index 2bd75af202048b709a278a3c669c712fb8e52044..3d125f092e08862a90bb5ce63ee8af8c10a43416 100644 (file)
@@ -5408,7 +5408,7 @@ nfa_regmatch(prog, start, submatch, m)
     regsubs_T          *m;
 {
     int                result;
-    int                size = 0;
+    size_t     size = 0;
     int                flag = 0;
     int                go_to_nextline = FALSE;
     nfa_thread_T *t;
index 35a716058ef0afce9d2472b309aca9acc310a176..7f84aec6624ad647ea74da6106731b379a0d0695 100644 (file)
@@ -741,6 +741,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    599,
 /**/
     598,
 /**/