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