xref: /PHP-7.2/ext/mbstring/tests/bug77370.phpt (revision 0dbb581c)
1--TEST--
2Bug #77370 (Buffer overflow on mb regex functions - fetch_token)
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
10var_dump(mb_split("   \xfd",""));
11?>
12--EXPECTF--
13Warning: mb_split(): Pattern is not valid under UTF-8 encoding in %s on line %d
14bool(false)
15