mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Fixed bug #73532 (Null pointer dereference in mb_eregi)
This commit is contained in:
parent
d6c36e9af7
commit
229024c725
3 changed files with 15 additions and 2 deletions
3
NEWS
3
NEWS
|
@ -8,6 +8,9 @@ PHP NEWS
|
|||
- Date:
|
||||
. Fixed bug #69587 (DateInterval properties and isset). (jhdxr)
|
||||
|
||||
- Mbstring:
|
||||
. Fixed bug #73532 (Null pointer dereference in mb_eregi). (Laruence)
|
||||
|
||||
- SQLite3:
|
||||
. Update to SQLite 3.15.1. (cmb)
|
||||
|
||||
|
|
|
@ -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)
|
Loading…
Add table
Add a link
Reference in a new issue