CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2012/04/26 11:18:17
Modified files:
sys/kern : uipc_usrreq.c
Log message:
Cleanup unp_bind() a little:
- Require sun_family to be set to AF_UNIX (also in unp_connect())
- Ensure internal sockaddr_un's always have their length set to
sizeof(struct sockaddr_un) regardless of the user specified length,
implicitly extending with NUL characters as necessary.
- Normalize sun_path to never contain a non-NUL character after a
NUL character.
Lack of NUL termination on truncated sockaddrs issue pointed out by
Michael Kerrisk on the Austin Group mailing list.
ok millert