mirror of
https://github.com/php/php-src.git
synced 2025-08-18 23:18:56 +02:00
Fix bug #77370 - check that we do not read past buffer end when parsing multibytes
This commit is contained in:
parent
a918020c03
commit
20407d06ca
2 changed files with 22 additions and 0 deletions
13
ext/mbstring/tests/bug77370.phpt
Normal file
13
ext/mbstring/tests/bug77370.phpt
Normal file
|
@ -0,0 +1,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) ""
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue