Skip to content

Commit 4f1ea03

Browse files
committed
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1: Apply upstream patch for CVE-2016-1283
2 parents 4f63024 + db9778d commit 4f1ea03

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

ext/pcre/tests/bug75207.phpt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
--TEST--
2+
CVE-2016-1283, see bug #75207
3+
--FILE--
4+
<?php
5+
preg_match("/š(?:F?+(?:^(?(R)a+\"){99}-))(?J)(?'R'(?'R'<((?'RR'(?'R'\){97)?J)?J)(?'R'(?'R'\){99|(:(?|(?'R')(\k'R')|((?'R')))H'R'R)(H'R))))))/", "*b\dc");
6+
?>
7+
==DONE==
8+
--EXPECTF--
9+
Warning: preg_match(): Compilation failed: unmatched parentheses at offset %d in %s on line %d
10+
==DONE==

0 commit comments

Comments
 (0)