Skip to content

fix(libcglue): reject invalid nfds in select - #934

Merged
uyjulian merged 1 commit into
ps2dev:masterfrom
PS2HomeDeveloper:patch-3
Oct 5, 2026
Merged

uyjulian merged 1 commit into
ps2dev:masterfrom
PS2HomeDeveloper:patch-3

Conversation

@PS2HomeDeveloper

Copy link
Copy Markdown
Contributor

select() does not validate n before processing the descriptor sets or calling the socket backend.

Reject negative values and values greater than FD_SETSIZE with EINVAL, as required by POSIX.

Testing:

  • Not run locally.
  • CI checks pending.

`select()` does not validate `n` before processing the descriptor sets
or calling the socket backend.

Reject negative values and values greater than `FD_SETSIZE` with
`EINVAL`, as required by POSIX.

Testing:
- Not run locally.
- CI checks pending.

@uyjulian uyjulian left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm

@uyjulian
uyjulian merged commit be12adc into ps2dev:master Oct 5, 2026
5 checks passed
@PS2HomeDeveloper
PS2HomeDeveloper deleted the patch-3 branch October 6, 2026 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants