Skip to content

Commit ac1173d

Browse files
brammooldouglaskayama
authored andcommitted
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)
1 parent a0b003e commit ac1173d

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/regexp_nfa.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5408,7 +5408,7 @@ nfa_regmatch(prog, start, submatch, m)
54085408
regsubs_T *m;
54095409
{
54105410
int result;
5411-
int size = 0;
5411+
size_t size = 0;
54125412
int flag = 0;
54135413
int go_to_nextline = FALSE;
54145414
nfa_thread_T *t;

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,8 @@ static char *(features[]) =
741741

742742
static int included_patches[] =
743743
{ /* Add new patch number below this line */
744+
/**/
745+
599,
744746
/**/
745747
598,
746748
/**/

0 commit comments

Comments
 (0)