Skip to content

random: Fix check before closing random_fd #10247

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

Merged
merged 2 commits into from
Jan 7, 2023

Conversation

TimWolla
Copy link
Member

@TimWolla TimWolla commented Jan 6, 2023

If, for whatever reason, the random_fd has been assigned file descriptor 0 it previously failed to close during module shutdown, thus leaking the descriptor.

If, for whatever reason, the random_fd has been assigned file descriptor `0` it
previously failed to close during module shutdown, thus leaking the descriptor.
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.

Don't forget to update the NEWS file when merging.

Copy link
Member

@cmb69 cmb69 left a comment

Choose a reason for hiding this comment

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

Looks reasonable. Thank you!

@TimWolla TimWolla merged commit 32f503e into php:PHP-8.2 Jan 7, 2023
@TimWolla TimWolla deleted the random-close-random-fd branch January 7, 2023 13:03
TimWolla added a commit to TimWolla/php-src that referenced this pull request Jan 7, 2023
* PHP-8.2:
  random: Fix check before closing `random_fd` (php#10247)
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.

3 participants