summaryrefslogtreecommitdiff
path: root/ext/pcre/tests
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2019-07-29 14:51:35 -0700
committerStanislav Malyshev <stas@php.net>2019-07-29 14:51:35 -0700
commit47985706079533bad712e2c66e8e5befc839494b (patch)
treebb03205a205a6160b09d4227bb93286f4ead8352 /ext/pcre/tests
parente043025fdadaa22389fe41cd00d9e6499e791a7e (diff)
parentfd6874c64d9e1d80b68b1035c1bb962ffd507798 (diff)
downloadphp-git-47985706079533bad712e2c66e8e5befc839494b.tar.gz
Merge branch 'PHP-7.4'
* PHP-7.4: Fix #78338: Array cross-border reading in PCRE
Diffstat (limited to 'ext/pcre/tests')
-rw-r--r--ext/pcre/tests/bug78338.phpt10
1 files changed, 10 insertions, 0 deletions
diff --git a/ext/pcre/tests/bug78338.phpt b/ext/pcre/tests/bug78338.phpt
new file mode 100644
index 0000000000..ec5bf1b946
--- /dev/null
+++ b/ext/pcre/tests/bug78338.phpt
@@ -0,0 +1,10 @@
+--TEST--
+Bug #78338 (Array cross-border reading in PCRE)
+--FILE--
+<?php
+$string = hex2bin('2f5c583f3d3f223f3536ff3636ffffffff36a8a8a83636367a7a7a7a3d2aff2f0a');
+preg_match($string, $string);
+echo "DONE\n";
+?>
+--EXPECT--
+DONE