diff options
author | Bram Moolenaar <bram@vim.org> | 2015-01-27 14:40:00 +0100 |
---|---|---|
committer | Bram Moolenaar <bram@vim.org> | 2015-01-27 14:40:00 +0100 |
commit | 72a55067d296a84897fb1834de80e5e625b8c092 (patch) | |
tree | 35e3857d59e0b126cd32e81098163f5637fc83f8 | |
parent | 938feecf9d95b58591103bde5e3686f3857f12e8 (diff) | |
download | vim-72a55067d296a84897fb1834de80e5e625b8c092.tar.gz |
Problem: Out-of-memory error.
Solution: Avoid trying to allocate a negative amount of memory, use size_t
instead of int. (Dominique Pelle)
-rw-r--r-- | src/regexp_nfa.c | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/regexp_nfa.c b/src/regexp_nfa.c index 2bd75af2..3d125f09 100644 --- a/src/regexp_nfa.c +++ b/src/regexp_nfa.c @@ -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; diff --git a/src/version.c b/src/version.c index 35a71605..7f84aec6 100644 --- a/src/version.c +++ b/src/version.c @@ -742,6 +742,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 599, +/**/ 598, /**/ 597, |