Skip to content

Treat sockaddr::sa_len as the authoritative end of a Unix domain socket name, rather than relying on null termination - #416

Open
mattrm456 wants to merge 1 commit into
bloomberg:mainfrom
mattrm456:ntsu-socketutil-uds-address-terminator-check
Open

mattrm456 wants to merge 1 commit into
bloomberg:mainfrom
mattrm456:ntsu-socketutil-uds-address-terminator-check

Conversation

@mattrm456

Copy link
Copy Markdown
Contributor

When converting struct sockaddr_un to an ntsa::Endpoint, treat sockaddr::sa_len as the authoritative specification of "one past" the last byte of the name, rather than relying on null termination.

… as the authoritative end of the name, rather than relying on null termination
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