mirror of
https://github.com/php/php-src.git
synced 2025-08-21 01:45:16 +02:00
Validate subject encoding in mb_split and mb_ereg_match
We were already validating the subject encoding in most functions, but not these two.
This commit is contained in:
parent
40fe50daf6
commit
0ecac37c40
2 changed files with 12 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
|||
--TEST--
|
||||
Bug #77371 (Heap overflow in utf32be_mbc_to_code)
|
||||
Bug #77418 (Heap overflow in utf32be_mbc_to_code)
|
||||
--SKIPIF--
|
||||
<?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
|
||||
--FILE--
|
||||
|
@ -8,7 +8,4 @@ mb_regex_encoding("UTF-32");
|
|||
var_dump(mb_split("\x00\x00\x00\x5c\x00\x00\x00B","000000000000000000000000000000"));
|
||||
?>
|
||||
--EXPECT--
|
||||
array(1) {
|
||||
[0]=>
|
||||
string(30) "000000000000000000000000000000"
|
||||
}
|
||||
bool(false)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue