Skip to content

Commit 703be4f

Browse files
committed
Patch from the upstream git
kkos/oniguruma#60 (CVE-2017-9228) Thanks to Mamoru TASAKA <mtasaka@fedoraproject.org>
1 parent 27a743b commit 703be4f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ext/mbstring/oniguruma/regparse.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4068,7 +4068,9 @@ next_state_class(CClassNode* cc, OnigCodePoint* vs, enum CCVALTYPE* type,
40684068
}
40694069
}
40704070

4071-
*state = CCS_VALUE;
4071+
if (*state != CCS_START)
4072+
*state = CCS_VALUE;
4073+
40724074
*type = CCV_CLASS;
40734075
return 0;
40744076
}

0 commit comments

Comments
 (0)