Skip to content
Permalink
Browse files

fix #55 : check too big code point value for single byte value in nex…

…t_state_val()
  • Loading branch information...
K.Kosako
K.Kosako committed May 18, 2017
1 parent 83aaca7 commit b4bf968ad52afe14e60a2dc8a95d3555c543353a
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/regparse.c
@@ -4044,6 +4044,9 @@ next_state_val(CClassNode* cc, OnigCodePoint *vs, OnigCodePoint v,
switch (*state) {
case CCS_VALUE:
if (*type == CCV_SB) {
if (*vs > 0xff)
return ONIGERR_INVALID_CODE_POINT_VALUE;

BITSET_SET_BIT(cc->bs, (int )(*vs));
}
else if (*type == CCV_CODE_POINT) {

0 comments on commit b4bf968

Please sign in to comment.
You can’t perform that action at this time.