-
Notifications
You must be signed in to change notification settings - Fork 7.9k
NULL deref in spl_directory.c #17225
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
Labels
Comments
I have a strong déjà vu with this one. Might try to analyze this tomorrow if someone else doesn't beat me to it. |
This is extremely similar to GH-14687, fix may've been incomplete. |
nielsdos
added a commit
to nielsdos/php-src
that referenced
this issue
Dec 21, 2024
NULL checks for the glob stream are inconsistently applied. To solve this generally, factor it out to a helper function so it's less likely to be forgotten in the future.
nielsdos
added a commit
that referenced
this issue
Dec 21, 2024
* PHP-8.3: Fix GH-17225: NULL deref in spl_directory.c
nielsdos
added a commit
that referenced
this issue
Dec 21, 2024
* PHP-8.4: Fix GH-17225: NULL deref in spl_directory.c
charmitro
pushed a commit
to wasix-org/php
that referenced
this issue
Mar 13, 2025
NULL checks for the glob stream are inconsistently applied. To solve this generally, factor it out to a helper function so it's less likely to be forgotten in the future. Closes phpGH-17231.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
The following code:
Resulted in this output:
To reproduce:
PHP Version
nightly
Operating System
No response
The text was updated successfully, but these errors were encountered: