Skip to content

Revert 49b2ff5dbb94b76b265fd5909881997e1d95c6b3#21532

Open
Girgias wants to merge 1 commit intophp:PHP-8.4from
Girgias:8.4-spl-bucket-revert
Open

Revert 49b2ff5dbb94b76b265fd5909881997e1d95c6b3#21532
Girgias wants to merge 1 commit intophp:PHP-8.4from
Girgias:8.4-spl-bucket-revert

Conversation

@Girgias
Copy link
Member

@Girgias Girgias commented Mar 25, 2026

The fix for this was to take hold of a pointer of the bucket, something that should not be done as it causes memory corruptions

Up merge might be a PITA...

The fix for this was to take hold of a pointer of the bucket, something that should not be done as it causes memory corruptions
@@ -0,0 +1,17 @@
--TEST--
GH-21499: RecursiveArrayIterator getChildren UAF after parent free
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
GH-21499: RecursiveArrayIterator getChildren UAF after parent free
GH-21499 (RecursiveArrayIterator getChildren UAF after parent free)

ZVAL_NULL(ht_zv);
zval_ptr_dtor(&params[0]);
zend_string_free(Z_STR(function_name));
zval_ptr_dtor(&function_name);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line could stay the same; or just use zval_ptr_dtor_str, doesn't matter too much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants