glibc/inet
Tobias Stoeckmann 6a3cb6b1bd nss: Improve network number parsers (bz 32573, 32575)
Make sure that numbers never overflow uint32_t in inet_network to
properly validate octets encountered in IPv4 addresses.

Avoid malloca in NSS networks file code because /etc/networks lines
can be arbitrarily long. Instead of handcrafting the input for
inet_network by adding ".0" octets if they are missing, just left shift
the result. Also, do not accept invalid entries, but ignore the line
instead.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
2025-02-13 16:31:28 -03:00
..
arpa
netinet inet: Add common IPv6 packet header macros 2025-01-13 10:54:38 -03:00
protocols
rpc
Makefile
Versions
bindresvport.c
bug-if1.c
check_native.c
check_pf.c
deadline.c
etc.rpc
ether_aton.c
ether_aton_r.c
ether_line.c
ether_ntoa.c
ether_ntoa_r.c
getipv4sourcefilter.c
getsourcefilter.c
herrno-loc.c
herrno.c
htonl.c
htons.c
htontest.c
idna.c
idna_name_classify.c
if_index.c
ifaddrs.c
ifaddrs.h
ifreq.c
in6_addr.c
inet6_opt.c
inet6_option.c
inet6_rth.c
inet6_scopeid_pton.c
inet_lnaof.c
inet_mkadr.c
inet_net.c nss: Improve network number parsers (bz 32573, 32575) 2025-02-13 16:31:28 -03:00
inet_netof.c
inet_ntoa.c
net-internal.h
rcmd.c
rexec.c
ruserpass.c
setipv4sourcefilter.c
setsourcefilter.c
test-hnto-types.c
test-ifaddrs.c
test-inet6_opt.c
test_ifindex.c
tst-checks-posix.c
tst-checks.c
tst-deadline.c
tst-ether_aton.c
tst-ether_line.c
tst-getni1.c
tst-getni2.c
tst-idna_name_classify.c
tst-if_index-long.c
tst-if_nameindex.c
tst-inet6_rth.c
tst-inet6_scopeid_pton.c
tst-network.c
tst-ntoa.c
tst-sockaddr.c