When building counter memory in preparation to copy to userland, always
authorderaadt <deraadt@openbsd.org>
Wed, 5 Apr 2017 13:35:18 +0000 (13:35 +0000)
committerderaadt <deraadt@openbsd.org>
Wed, 5 Apr 2017 13:35:18 +0000 (13:35 +0000)
commitc8915b1edf5f30c94370b39ef5a776c42cbfbf9a
tree8ff4ca357a97a3ad425e6d951db7c87e4425f249
parenta250e9a5ff8fcb8aca5e6c532de1f75f5878adb2
When building counter memory in preparation to copy to userland, always
zero the buffers first.  All the current objects appear to be safe,
however future changes might introduce structure pads.
Discussed with guenther, ok bluhm
sys/net/if_pfsync.c
sys/net/rtsock.c
sys/netinet/igmp.c
sys/netinet/ip_carp.c
sys/netinet/ip_divert.c
sys/netinet/ip_icmp.c
sys/netinet/ip_input.c
sys/netinet/ip_ipip.c
sys/netinet/tcp_usrreq.c
sys/netinet/udp_usrreq.c
sys/netinet6/icmp6.c