mirror of git://sourceware.org/git/glibc.git
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> |
||
|---|---|---|
| .. | ||
| files-XXX.c | ||
| files-alias.c | ||
| files-ethers.c | ||
| files-grp.c | ||
| files-hosts.c | ||
| files-init.c | ||
| files-initgroups.c | ||
| files-netgrp.c | ||
| files-network.c | ||
| files-parse.c | ||
| files-proto.c | ||
| files-pwd.c | ||
| files-rpc.c | ||
| files-service.c | ||
| files-sgrp.c | ||
| files-spwd.c | ||