Skip to content

Commit

Permalink
patch 7.4.715
Browse files Browse the repository at this point in the history
Problem:    Invalid memory access when there are illegal bytes.
Solution:   Get the length from the text, not from the character. (Dominique
            Pelle)
  • Loading branch information
brammool committed May 4, 2015
1 parent 069dd08 commit 2186ffa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/regexp_nfa.c
Original file line number Diff line number Diff line change
Expand Up @@ -6602,7 +6602,7 @@ nfa_regmatch(prog, start, submatch, m)
/* If ireg_icombine is not set only skip over the character
* itself. When it is set skip over composing characters. */
if (result && enc_utf8 && !ireg_icombine)
clen = utf_char2len(curc);
clen = utf_ptr2len(reginput);
#endif
ADD_STATE_IF_MATCH(t->state);
break;
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
715,
/**/
714,
/**/
Expand Down

0 comments on commit 2186ffa

Please sign in to comment.