diff options
author | Alan Somers <asomers@gmail.com> | 2022-04-22 11:49:34 -0600 |
---|---|---|
committer | Alan Somers <asomers@gmail.com> | 2022-04-22 14:40:42 -0600 |
commit | db969c59e9a96ee27f9116c3e6dfa455545be764 (patch) | |
tree | 8c0fe64a1e084e83ab80e12aa86672f9813bb3f9 /.cirrus.yml | |
parent | 9793aafb9cdcfbe0b8c00a7ec96d95451d6e9f1a (diff) | |
download | nix-db969c59e9a96ee27f9116c3e6dfa455545be764.zip |
Fix UnixAddr::size on Linux and Android
SockaddrLike::size() is meant to return the amount of space that can be
used to store the sockaddr. But on Linux-based OSes, UnixAddr contains
an extra field to store the address's length. This field is not part of
the address, and should not contribute to the value of size().
This bug can't cause an out-of-bounds write, and every OS that we test
on can tolerate the greater-than-expected length, but it might confuse
applications that implement functions similar to getsockname in
userland.
Diffstat (limited to '.cirrus.yml')
0 files changed, 0 insertions, 0 deletions