glibc/nss/nss_files
Siddhesh Poyarekar 977f4b31b7 Fix reads for sizes larger than INT_MAX in AF_INET lookup
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.
2013-10-30 16:19:40 +05:30
..
files-XXX.c Fix reads for sizes larger than INT_MAX in AF_INET lookup 2013-10-30 16:19:40 +05:30
files-alias.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
files-ethers.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
files-grp.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
files-have_o_cloexec.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
files-hosts.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
files-init.c Remove non-standard initialisation of flexible array member 2013-04-23 10:31:03 +02:00
files-initgroups.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
files-key.c Use proper #include for xdecrypt declarations. 2013-08-26 15:04:02 -07:00
files-netgrp.c Fix leading whitespaces. 2013-06-06 20:36:07 +02:00
files-network.c Add #include <stdint.h> for uint[32|64]_t usage (except installed headers). 2013-05-16 11:32:54 -05:00
files-parse.c Add #include <stdint.h> for uint[32|64]_t usage (except installed headers). 2013-05-16 11:32:54 -05:00
files-proto.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
files-pwd.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
files-rpc.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
files-service.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
files-sgrp.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
files-spwd.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00