diff options
author | Stanislav Malyshev <stas@php.net> | 2019-07-29 14:51:35 -0700 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2019-07-29 14:51:35 -0700 |
commit | 47985706079533bad712e2c66e8e5befc839494b (patch) | |
tree | bb03205a205a6160b09d4227bb93286f4ead8352 /ext/pcre/tests | |
parent | e043025fdadaa22389fe41cd00d9e6499e791a7e (diff) | |
parent | fd6874c64d9e1d80b68b1035c1bb962ffd507798 (diff) | |
download | php-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.phpt | 10 |
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 |