mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-27 03:41:23 +08:00
977f4b31b7
Currently for AF_INET lookups from the hosts file, buffer sizes larger than INT_MAX silently overflow and may result in access beyond bounds of a buffer. This happens when the number of results in an AF_INET lookup in /etc/hosts are very large. There are two aspects to the problem. One problem is that the size computed from the buffer size is stored into an int, which results in overflow for large sizes. Additionally, even if this size was expanded, the function used to read content into the buffer (fgets) accepts only int sizes. As a result, the fix is to have a function wrap around fgets that calls it multiple times with int sizes if necessary. |
||
---|---|---|
.. | ||
files-alias.c | ||
files-ethers.c | ||
files-grp.c | ||
files-have_o_cloexec.c | ||
files-hosts.c | ||
files-init.c | ||
files-initgroups.c | ||
files-key.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 | ||
files-XXX.c |