Skip to content

Fix GH-16388: UB when freeing a cloned _ZendTestFiber #16400

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

cmb69
Copy link
Member

@cmb69 cmb69 commented Oct 12, 2024

Since there is no need to clone instances of this test class, we prevent cloning in the first place.


The issue has likely been introduced via 94ee4f9 (which had been reverted from PHP-8.2 later); anyway, PHP-8.2 is not affected.

Since there is no need to clone instances of this test class, we
prevent cloning in the first place.
@cmb69 cmb69 linked an issue Oct 12, 2024 that may be closed by this pull request
@cmb69 cmb69 marked this pull request as ready for review October 12, 2024 16:19
Copy link
Member

@nielsdos nielsdos left a comment

Choose a reason for hiding this comment

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

I fixed some similar issues before, this seems right.

@nielsdos
Copy link
Member

Actually this needs to go in 8.2, doing anything that changes the object state on 8.2 can result in a crash. The commit you linked only reveals the issue.

@cmb69 cmb69 closed this in a3eb1fd Oct 12, 2024
@cmb69 cmb69 deleted the cmb/gh16388 branch October 12, 2024 20:51
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.

UB when freeing a cloned _ZendTestFiber
2 participants