xref: /PHP-5.6/ext/mbstring/tests/bug77418.phpt (revision 9d6c59ee)
1--TEST--
2Bug #77371 (Heap overflow in utf32be_mbc_to_code)
3--SKIPIF--
4<?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
5--FILE--
6<?php
7mb_regex_encoding("UTF-32");
8var_dump(mb_split("\x00\x00\x00\x5c\x00\x00\x00B","000000000000000000000000000000"));
9?>
10--EXPECT--
11array(1) {
12  [0]=>
13  string(30) "000000000000000000000000000000"
14}
15