From 7350b4e020cf8e8e5d9c6c0dd292163de735c2bb Mon Sep 17 00:00:00 2001 From: Ilija Tovilo Date: Mon, 8 May 2023 17:00:40 +0200 Subject: [PATCH] Fix use-of-undefined in zend_fiber_object_gc of ex->call ex->call is only set for user calls, we shouldn't access it here. zend_unfinished_execution_gc_ex wouldn't actually use it for internal calls, so it didn't cause any serious issues. --- Zend/zend_fibers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Zend/zend_fibers.c b/Zend/zend_fibers.c index 53f78417f5db..aae7058294d5 100644 --- a/Zend/zend_fibers.c +++ b/Zend/zend_fibers.c @@ -670,7 +670,7 @@ static HashTable *zend_fiber_object_gc(zend_object *object, zval **table, int *n HashTable *lastSymTable = NULL; zend_execute_data *ex = fiber->execute_data; for (; ex; ex = ex->prev_execute_data) { - HashTable *symTable = zend_unfinished_execution_gc_ex(ex, ex->call, buf, false); + HashTable *symTable = zend_unfinished_execution_gc_ex(ex, ZEND_USER_CODE(ex->func->type) ? ex->call : NULL, buf, false); if (symTable) { if (lastSymTable) { zval *val;