summaryrefslogtreecommitdiff
path: root/ext/mbstring/tests
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2019-01-06 23:34:02 -0800
committerStanislav Malyshev <stas@php.net>2019-01-06 23:34:26 -0800
commitcfe77ea543ac01a151e56a6ea1de585a31f948fb (patch)
treeebefb422df7e7b80879ad94793fae7cac851e08f /ext/mbstring/tests
parentd0d0d922de02c7b2a248cc943490d7ae77f084be (diff)
parent1afebfb3faabafa7f8a28cf9351e86dd423a10ec (diff)
downloadphp-git-cfe77ea543ac01a151e56a6ea1de585a31f948fb.tar.gz
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1: Fix bug #77418 - Heap overflow in utf32be_mbc_to_code Add NEWS [ci skip] Add NEWS Fix more issues with encodilng length Fix #77270: imagecolormatch Out Of Bounds Write on Heap Fix bug #77380 (Global out of bounds read in xmlrpc base64 code) Fix bug #77371 (heap buffer overflow in mb regex functions - compile_string_node) Fix bug #77370 - check that we do not read past buffer end when parsing multibytes Fix #77269: Potential unsigned underflow in gdImageScale Fix bug #77247 (heap buffer overflow in phar_detect_phar_fname_ext) Fix bug #77242 (heap out of bounds read in xmlrpc_decode()) Regenerate certs for openssl tests
Diffstat (limited to 'ext/mbstring/tests')
-rw-r--r--ext/mbstring/tests/bug77418.phpt14
1 files changed, 14 insertions, 0 deletions
diff --git a/ext/mbstring/tests/bug77418.phpt b/ext/mbstring/tests/bug77418.phpt
new file mode 100644
index 0000000000..b4acc45c21
--- /dev/null
+++ b/ext/mbstring/tests/bug77418.phpt
@@ -0,0 +1,14 @@
+--TEST--
+Bug #77371 (Heap overflow in utf32be_mbc_to_code)
+--SKIPIF--
+<?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
+--FILE--
+<?php
+mb_regex_encoding("UTF-32");
+var_dump(mb_split("\x00\x00\x00\x5c\x00\x00\x00B","000000000000000000000000000000"));
+?>
+--EXPECT--
+array(1) {
+ [0]=>
+ string(30) "000000000000000000000000000000"
+}