0
0
mirror of https://github.com/vim/vim.git synced 2025-10-08 06:04:08 -04:00

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)
This commit is contained in:
Bram Moolenaar
2015-01-27 14:40:00 +01:00
parent 5c27fd100a
commit aaf3047de2
2 changed files with 3 additions and 1 deletions

View 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;

View File

@@ -741,6 +741,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
599,
/**/
598,
/**/