mirror of
https://github.com/php/php-src.git
synced 2024-11-25 10:54:15 +08:00
Drop invalid arrays
This commit is contained in:
parent
bc1c0c2e12
commit
b7476a5bd6
@ -477,6 +477,10 @@ PHPAPI int php_var_unserialize(UNSERIALIZE_PARAMETER)
|
||||
"a:" uiv ":" "{" {
|
||||
int elements = parse_iv(start + 2);
|
||||
|
||||
if (elements < 0) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
*p = YYCURSOR;
|
||||
|
||||
INIT_PZVAL(*rval);
|
||||
|
Loading…
Reference in New Issue
Block a user