zephyr/subsys/net/lib/sockets
Paul Sokolovsky ede25c12a3 net: sockets: getaddrinfo() buffer overflow, etc. fixes
The existing implementation assumed DNS resolv callback will be
called just once, but that's not always the case (apparently,
for multi-homes hosts or something). So, apply array bounds
checking (and do pointer arithmetic only after it, as the C
standard otherwise warns of "undefined behavior"). In such a case,
the port number wasn't set in each entry too, so rework how it's
done.

The issues discovered while resolving archive.ubuntu.com.

Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
2018-02-12 20:17:26 -05:00
..
CMakeLists.txt Introduce cmake-based rewrite of KBuild 2017-11-08 20:00:22 -05:00
getaddrinfo.c net: sockets: getaddrinfo() buffer overflow, etc. fixes 2018-02-12 20:17:26 -05:00
Kconfig kconfig: fix help syntax and add spaces 2017-12-13 17:43:28 -06:00
sockets.c net: sockets: Handle EINTR return from k_poll() 2017-11-21 07:01:49 -05:00