glibc/nss/nss_files
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
..
files-XXX.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
files-alias.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
files-ethers.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
files-grp.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
files-hosts.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
files-init.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
files-initgroups.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
files-netgrp.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
files-network.c nss: Improve network number parsers (bz 32573, 32575) 2025-02-13 16:31:28 -03:00
files-parse.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
files-proto.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
files-pwd.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
files-rpc.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
files-service.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
files-sgrp.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
files-spwd.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00