mirror of
https://github.com/php/php-src.git
synced 2025-08-19 17:04:47 +02:00
Fixed bug #74111
This commit is contained in:
parent
0525574913
commit
3a25a56a92
3 changed files with 497 additions and 523 deletions
|
@ -42,7 +42,7 @@ bool(false)
|
||||||
Notice: unserialize(): Error at offset 17 of 33 bytes in %sbug25378.php on line %d
|
Notice: unserialize(): Error at offset 17 of 33 bytes in %sbug25378.php on line %d
|
||||||
bool(false)
|
bool(false)
|
||||||
|
|
||||||
Notice: unserialize(): Error at offset 33 of 32 bytes in %sbug25378.php on line %d
|
Notice: unserialize(): Error at offset 32 of 32 bytes in %sbug25378.php on line %d
|
||||||
bool(false)
|
bool(false)
|
||||||
|
|
||||||
Notice: unserialize(): Error at offset 2 of 13 bytes in %sbug25378.php on line %d
|
Notice: unserialize(): Error at offset 2 of 13 bytes in %sbug25378.php on line %d
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -432,13 +432,12 @@ string_key:
|
||||||
|
|
||||||
static inline int finish_nested_data(UNSERIALIZE_PARAMETER)
|
static inline int finish_nested_data(UNSERIALIZE_PARAMETER)
|
||||||
{
|
{
|
||||||
if (*((*p)++) == '}')
|
if (*p >= max || **p != '}') {
|
||||||
return 1;
|
|
||||||
|
|
||||||
#if SOMETHING_NEW_MIGHT_LEAD_TO_CRASH_ENABLE_IF_YOU_ARE_BRAVE
|
|
||||||
zval_ptr_dtor(rval);
|
|
||||||
#endif
|
|
||||||
return 0;
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
(*p)++;
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int object_custom(UNSERIALIZE_PARAMETER, zend_class_entry *ce)
|
static inline int object_custom(UNSERIALIZE_PARAMETER, zend_class_entry *ce)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue