mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
fix bug #63369
(un)serialize() leaves dangling pointers, causes crashes
This commit is contained in:
parent
4f4d77805c
commit
f2bffdc2e4
2
NEWS
2
NEWS
@ -4,6 +4,8 @@ PHP NEWS
|
||||
|
||||
- Core:
|
||||
. Fixed bug #63305 (zend_mm_heap corrupted with traits). (Dmitry, Laruence)
|
||||
. Fixed bug #63369 ((un)serialize() leaves dangling pointers, causes crashes).
|
||||
(Tony, Andrew Sitnikov)
|
||||
|
||||
- Curl:
|
||||
. Fixed bug #63363 (Curl silently accepts boolean true for SSL_VERIFYHOST).
|
||||
|
@ -3684,6 +3684,11 @@ PHP_MSHUTDOWN_FUNCTION(basic) /* {{{ */
|
||||
PHP_RINIT_FUNCTION(basic) /* {{{ */
|
||||
{
|
||||
memset(BG(strtok_table), 0, 256);
|
||||
|
||||
BG(serialize_lock) = 0;
|
||||
memset(&BG(serialize), 0, sizeof(BG(serialize)));
|
||||
memset(&BG(unserialize), 0, sizeof(BG(unserialize)));
|
||||
|
||||
BG(strtok_string) = NULL;
|
||||
BG(strtok_zval) = NULL;
|
||||
BG(strtok_last) = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user