summaryrefslogtreecommitdiff
path: root/ext/mbstring/tests/bug77370.phpt
blob: c4d25582fe3bd8c4e513ffaf59cb15ead32dc0d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--TEST--
Bug #77370 (Buffer overflow on mb regex functions - fetch_token)
--SKIPIF--
<?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
--FILE--
<?php
var_dump(mb_split("   \xfd",""));
?>
--EXPECT--
array(1) {
  [0]=>
  string(0) ""
}