Skip to content

Conversation

@devnexen
Copy link
Member

@devnexen devnexen commented Dec 6, 2025

while still filtering out IPC like addresses and so on.

@devnexen devnexen force-pushed the socket_addrinfo_lookup branch from ccc8401 to bbf7fc6 Compare December 8, 2025 22:04
@devnexen devnexen marked this pull request as ready for review December 8, 2025 22:19
@devnexen devnexen requested a review from kocsismate as a code owner December 8, 2025 22:19
@devnexen devnexen requested a review from Girgias January 12, 2026 20:38
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.

Looks reasonable but I don't really know sockets soooo.

Aside, I just noticed that the host parameter probably should be a Z_PARAM_STR_PATH as it is passed to getaddrinfo() without the length.

Comment on lines 2802 to 2826
// Some platforms support also PF_LOCAL/AF_UNIX (e.g. FreeBSD) but the security concerns implied
// make it not worth handling it (e.g. unwarranted write permissions on the socket).
// Note existing socket_addrinfo* api already forbid such case.
Copy link
Member

Choose a reason for hiding this comment

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

Does the comment need updating?

Copy link
Member Author

Choose a reason for hiding this comment

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

no it s still true, we still want to deal with only AF_INET*

@devnexen
Copy link
Member Author

Looks reasonable but I don't really know sockets soooo.

Aside, I just noticed that the host parameter probably should be a Z_PARAM_STR_PATH as it is passed to getaddrinfo() without the length.

seems good point, I ll update soon. Cheers !

while still filtering out IPC like addresses and so on.
@devnexen devnexen force-pushed the socket_addrinfo_lookup branch from bbf7fc6 to 5460bd0 Compare January 13, 2026 19:09
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.

2 participants