1
0
mirror of https://github.com/php/php-src.git synced 2026-04-14 11:32:11 +02:00

Patch from the upstream git

https://github.com/kkos/oniguruma/issues/58 (CVE-2017-9227)

Thanks to Mamoru TASAKA <mtasaka@fedoraproject.org>
This commit is contained in:
Remi Collet
2017-05-30 15:38:17 +02:00
parent 2693e52113
commit bdf7393ddb

View File

@@ -3123,6 +3123,8 @@ forward_search_range(regex_t* reg, const UChar* str, const UChar* end, UChar* s,
}
else {
UChar *q = p + reg->dmin;
if (q >= end) return 0; /* fail */
while (p < q) p += enclen(reg->enc, p);
}
}