zephyr/subsys/net/lib/sockets
Jukka Rissanen 2f95f4afe7 net: sockets: Initialize IP socket addresses in getsockname()
Make sure the IPv4 and IPv6 socket addresses are initialized before
copying them. This avoids uninitialized memory access.

Coverity-CID: 199436
Fixes #17202

Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2019-07-03 15:26:59 +03:00
..
CMakeLists.txt net: sockets: mgmt: Add AF_NET_MGMT address family support 2019-07-01 13:50:08 -07:00
getaddrinfo.c net: getaddrinfo: Query both IPv4 and IPv6 if family is AF_UNSPEC 2019-06-20 14:45:43 +03:00
getnameinfo.c net: sockets: Implement getnameinfo() 2019-02-19 17:34:57 -05:00
Kconfig net: sockets: mgmt: Add AF_NET_MGMT address family support 2019-07-01 13:50:08 -07:00
socket_offload.c net: sockets: Remove TI conditional from offloaded fcntl implementation 2019-05-30 18:41:31 -04:00
sockets_can.c cleanup: include/: move misc/util.h to sys/util.h 2019-06-27 22:55:49 -04:00
sockets_internal.h cleanup: include/: move misc/fdtable.h to sys/fdtable.h 2019-06-27 22:55:49 -04:00
sockets_misc.c net: add missing syscall for gethostname() 2019-04-06 14:30:42 -04:00
sockets_net_mgmt.c net: socket: mgmt: Add setsockopt() and getsockopt() support 2019-07-01 13:50:08 -07:00
sockets_packet.c cleanup: include/: move misc/util.h to sys/util.h 2019-06-27 22:55:49 -04:00
sockets_select.c all: Add 'U' suffix when using unsigned variables 2019-03-28 17:15:58 -05:00
sockets_tls.c cleanup: include/: move misc/util.h to sys/util.h 2019-06-27 22:55:49 -04:00
sockets.c net: sockets: Initialize IP socket addresses in getsockname() 2019-07-03 15:26:59 +03:00