xref: /PHP-8.0/ext/mbstring/tests/bug77418.phpt (revision 04441585)
1--TEST--
2Bug #77418 (Heap overflow in utf32be_mbc_to_code)
3--SKIPIF--
4<?php
5if (!extension_loaded('mbstring')) die('skip mbstring extension not available');
6if (!function_exists('mb_split')) die('skip mb_split() not available');
7?>
8--FILE--
9<?php
10mb_regex_encoding("UTF-32");
11
12var_dump(mb_split("\x00\x00\x00\x5c\x00\x00\x00B","000000000000000000000000000000"));
13?>
14--EXPECT--
15bool(false)
16