Skip to content

Commit

Permalink
regcomp.c: Don't read off the end of buffer
Browse files Browse the repository at this point in the history
Until this commit, it was possible that \p{nv=3/} would cause the right
brace to be considered part of the property name.

Spotted by Hugo van der Sanden
  • Loading branch information
khwilliamson committed Aug 9, 2019
1 parent 5d26d78 commit 3153298
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion regcomp.c
Original file line number Diff line number Diff line change
Expand Up @@ -23092,7 +23092,9 @@ Perl_parse_uniprop_string(pTHX_
}

/* Store the first real character in the denominator */
lookup_name[j++] = name[i];
if (i < name_len) {
lookup_name[j++] = name[i];
}
}
}

Expand Down

0 comments on commit 3153298

Please sign in to comment.