Drop invalid arrays

This commit is contained in:
Stefan Esser 2005-02-28 16:22:39 +00:00
parent bc1c0c2e12
commit b7476a5bd6

View File

@ -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);