-
Notifications
You must be signed in to change notification settings - Fork 724
Rework UnixAddr to fix soundness issues #1496
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
Conversation
a986fdd to
50b9507
Compare
50b9507 to
ef4055b
Compare
644e725 to
28515b0
Compare
|
I also just changed the documentation of |
|
@asomers could you take a look? |
28515b0 to
460842a
Compare
asomers
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changing the meaning of len in sockaddr_storage_to_addr is a big deal. Can you make that backwards compatible instead?
460842a to
8e963a0
Compare
asomers
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bors r+
Fixes #1494
I went with making
sun_pathalways nul-terminated since that just seems to make things easier, since (at least according to linux man pages)sockaddr_uns returned by the kernel will always be nul-terminated.