Merge branch 'PHP-8.2'

* PHP-8.2:
  Fix potential NULL pointer access in zend_fiber_object_gc
This commit is contained in:
Ilija Tovilo 2023-05-11 14:35:42 +02:00
commit 8d8cfe24d3
No known key found for this signature in database
GPG key ID: A4F5D403F118200A

View file

@ -751,7 +751,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, ZEND_USER_CODE(ex->func->type) ? ex->call : NULL, buf, false);
HashTable *symTable = zend_unfinished_execution_gc_ex(ex, ex->func && ZEND_USER_CODE(ex->func->type) ? ex->call : NULL, buf, false);
if (symTable) {
if (lastSymTable) {
zval *val;