Skip to content
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

Fix GH-17442: Engine UAF with reference assign and dtor #17443

Open
wants to merge 1 commit into
base: PHP-8.3
Choose a base branch
from

Conversation

nielsdos
Copy link
Member

Need to protect the object zval in this case by using the garbage zval trick.
I don't really like doing this, but at least the code in the test isn't completely pathological and the assign_ref operations aren't super common on hot code I would think; so I can live a bit with that.

@nielsdos nielsdos linked an issue Jan 11, 2025 that may be closed by this pull request
@nielsdos nielsdos marked this pull request as ready for review January 11, 2025 11:26
@nielsdos nielsdos requested a review from dstogov as a code owner January 11, 2025 11:26
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.

Engine UAF with reference assign and dtor
1 participant