mirror of
https://github.com/php/php-src.git
synced 2026-03-28 18:22:42 +01:00
Merge branch 'PHP-7.1'
* PHP-7.1: Fixed bug #73532 (Null pointer dereference in mb_eregi)
This commit is contained in:
@@ -708,8 +708,10 @@ static void _php_mb_regex_ereg_exec(INTERNAL_FUNCTION_PARAMETERS, int icase)
|
||||
string_len,
|
||||
_php_mb_regex_mbctype2name(MBREX(current_mbctype))
|
||||
)) {
|
||||
zval_dtor(array);
|
||||
array_init(array);
|
||||
if (array != NULL) {
|
||||
zval_dtor(array);
|
||||
array_init(array);
|
||||
}
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
|
||||
8
ext/mbstring/tests/bug73532.phpt
Normal file
8
ext/mbstring/tests/bug73532.phpt
Normal file
@@ -0,0 +1,8 @@
|
||||
--TEST--
|
||||
Bug #73532 (Null pointer dereference in mb_eregi)
|
||||
--FILE--
|
||||
<?php
|
||||
var_dump(mb_eregi("a", "\xf5"));
|
||||
?>
|
||||
--EXPECTF--
|
||||
bool(false)
|
||||
Reference in New Issue
Block a user