commit | aaf3047de2123ae87811e947ddbaee97593fad57 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Tue Jan 27 14:40:00 2015 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Tue Jan 27 14:40:00 2015 +0100 |
tree | c1318864f15d38c10aba6158ca6c668adb37a130 | |
parent | 5c27fd100aa5ec587e9d6b2a4a751172b890c837 [diff] [blame] |
updated for version 7.4.599 Problem: Out-of-memory error. Solution: Avoid trying to allocate a negative amount of memory, use size_t instead of int. (Dominique Pelle)
diff --git a/src/regexp_nfa.c b/src/regexp_nfa.c index 2bd75af..3d125f0 100644 --- a/src/regexp_nfa.c +++ b/src/regexp_nfa.c
@@ -5408,7 +5408,7 @@ regsubs_T *m; { int result; - int size = 0; + size_t size = 0; int flag = 0; int go_to_nextline = FALSE; nfa_thread_T *t;