Re: [PATCH for-6.2 1/4] net: Zero sockaddr_in in parse_host_port()

2021-08-13 Thread Eric Blake
On Fri, Aug 13, 2021 at 04:05:03PM +0100, Peter Maydell wrote: > We don't currently zero-initialize the 'struct sockaddr_in' that > parse_host_port() fills in, so any fields we don't explicitly > initialize might be left as random garbage. POSIX states that > implementations may define extensions

[PATCH for-6.2 1/4] net: Zero sockaddr_in in parse_host_port()

2021-08-13 Thread Peter Maydell
We don't currently zero-initialize the 'struct sockaddr_in' that parse_host_port() fills in, so any fields we don't explicitly initialize might be left as random garbage. POSIX states that implementations may define extensions in sockaddr_in, and that those extensions must not trigger if