diff options
author | Remi Collet <remi@php.net> | 2017-05-30 15:40:32 +0200 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2017-07-05 09:26:06 +0200 |
commit | 703be4f77e662837b64499b0d046a5c8d06a98b9 (patch) | |
tree | a28d2e6714832d0043af9086e343f14267a5aa7b | |
parent | 27a743b82b0b8d7e8e8154f3cc402204fea0ebd3 (diff) | |
download | php-git-703be4f77e662837b64499b0d046a5c8d06a98b9.tar.gz |
Patch from the upstream git
https://github.com/kkos/oniguruma/issues/60 (CVE-2017-9228)
Thanks to Mamoru TASAKA <mtasaka@fedoraproject.org>
-rw-r--r-- | ext/mbstring/oniguruma/regparse.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/mbstring/oniguruma/regparse.c b/ext/mbstring/oniguruma/regparse.c index c6822e6267..d2925f1e81 100644 --- a/ext/mbstring/oniguruma/regparse.c +++ b/ext/mbstring/oniguruma/regparse.c @@ -4068,7 +4068,9 @@ next_state_class(CClassNode* cc, OnigCodePoint* vs, enum CCVALTYPE* type, } } - *state = CCS_VALUE; + if (*state != CCS_START) + *state = CCS_VALUE; + *type = CCV_CLASS; return 0; } |