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

sockets: fix string lifetime for getaddrinfo #70

Merged
merged 1 commit into from
Feb 14, 2024

Conversation

alaviss
Copy link
Owner

@alaviss alaviss commented Feb 14, 2024

The expression we used for getaddrinfo() invocation might cause the underlying strings to be deallocated before they are sent to getaddrinfo(), which would result in use-after-free issues.

Also added more tests for resolveIP + having a port set.

The expression we used for `getaddrinfo()` invocation might cause the
underlying strings to be deallocated before they are sent to
`getaddrinfo()`, which would result in use-after-free issues.

Also added more tests for resolveIP + having a port set.
@alaviss alaviss enabled auto-merge February 14, 2024 17:09
@alaviss alaviss merged commit 600eaec into master Feb 14, 2024
14 checks passed
@alaviss alaviss deleted the fixes/sockets-resolve-port branch August 28, 2024 22:24
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.

1 participant