Skip to content

Fix GH-12721: SplFileInfo::getFilename() segfault in combination with… #12722

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 2 commits into from

Conversation

nielsdos
Copy link
Member

… GlobIterator and no directory separator

This broke in 7cd8879 and 9bae9ab. NULL is a perfectly valid return value that should be handled.

…ith GlobIterator and no directory separator

This broke in 7cd8879 and 9bae9ab. NULL is a perfectly valid return
value that should be handled.
Copy link
Member

@Girgias Girgias left a comment

Choose a reason for hiding this comment

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

LGTM, I did a dumb dumb.

Doesn't help ext/spl is convoluted, and also surprised it took this long to find out.

@nielsdos
Copy link
Member Author

and also surprised it took this long to find out.

Yeah. People seem to tend to wait for the longest time possible to upgrade, which means some bugs are found very late (or even when the release is already in security-only mode)

@nielsdos nielsdos closed this in 4d41dff Nov 19, 2023
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.

SplFileInfo::getFilename() segfault in combination with GlobIterator and no directory separator
2 participants