xref: /PHP-8.2/ext/mbstring/tests/bug77370.phpt (revision 74859783)
1--TEST--
2Bug #77370 (Buffer overflow on mb regex functions - fetch_token)
3--EXTENSIONS--
4mbstring
5--SKIPIF--
6<?php
7if (!function_exists('mb_split')) die('skip mb_split() not available');
8?>
9--FILE--
10<?php
11var_dump(mb_split("   \xfd",""));
12?>
13--EXPECTF--
14Warning: mb_split(): Pattern is not valid under UTF-8 encoding in %s on line %d
15bool(false)
16