xref: /PHP-7.1/ext/mbstring/tests/bug77418.phpt (revision 0ecac37c)
1--TEST--
2Bug #77418 (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--
11bool(false)
12