From ba8033feb0c2e8c6665a55d13ae2d0957ce72add Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Fri, 28 Jun 2019 10:43:56 +0300 Subject: [PATCH] Fixed use-after-free --- Zend/zend_execute_API.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c index 4117b48baf..7606351a0f 100644 --- a/Zend/zend_execute_API.c +++ b/Zend/zend_execute_API.c @@ -359,6 +359,7 @@ void shutdown_executor(void) /* {{{ */ if (ht) { ZEND_ASSERT(GC_REFCOUNT(ht) == 1); zend_array_destroy(ht); + ZEND_MAP_PTR_SET(op_array->static_variables_ptr, NULL); } } } ZEND_HASH_FOREACH_END(); @@ -390,6 +391,7 @@ void shutdown_executor(void) /* {{{ */ if (ht) { ZEND_ASSERT(GC_REFCOUNT(ht) == 1); zend_array_destroy(ht); + ZEND_MAP_PTR_SET(op_array->static_variables_ptr, NULL); } } } -- 2.40.0