Skip to content
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

[nrf fromtree] net: sockets: prevent null pointer dereference #1446

Merged
merged 1 commit into from
Jan 16, 2024

Conversation

MirkoCovizzi
Copy link
Contributor

According to the POSIX specification, null pointer is a valid value for the address argument
of the accept function.
This commit adds a check to prevent a null pointer dereference inside z_impl_zsock_accept.

Signed-off-by: Mirko Covizzi [email protected]
(cherry picked from commit f3b2c04)

According to the POSIX specification, null pointer
is a valid value for the `address` argument
of the `accept` function.
This commit adds a check to prevent a null pointer
dereference inside `z_impl_zsock_accept`.

Signed-off-by: Mirko Covizzi <[email protected]>
(cherry picked from commit f3b2c04)
@rlubos rlubos merged commit c278430 into nrfconnect:main Jan 16, 2024
8 checks passed
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.

4 participants