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
Address segmentation fault caused by accessing lookup data once the extension data was freed #505
Conversation
b53d432
to
2c429f2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice improvements @pawelchcki! I just suggested a few tweaks. :)
8d8e709
to
b6fac9c
Compare
Thanks @SammyK for the review, I've addressed all suggestions. Should be ready for next review round. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work @pawelchcki! :)
dd7872c
to
8a2944a
Compare
Description
In some cases PHP code could be run after extension destructor has run, causing a segmentation fault when accessing lookup data from within PHP code. This PR changes the code to use pointers to hashtables and sets them to NULL to denote they're not to be used. Additional checks have been added to lookup code to make sure we check the status of those pointers before accessing them.
Additionally this PR includes fixes for:
Readiness checklist