glibc/nss
Florian Weimer a6033052d0 nss_db: Propagate ERANGE error if parse_line fails [BZ #19837]
Reproducer (needs to run as root):

perl -e \
  'print "large999:" . join(",", map {"user$_"} (1 .. 135))."\n"' \
  >> /etc/group
cd /var/db
make
getent -s db group

After the fix, the last command should list the "large" group.

The magic number 135 has been chosen so that the line is shorter than
1024 bytes, but the pointers required to encode the member array will
cross the threshold, triggering the bug.
2016-03-29 11:27:32 +02:00
..
nss_db nss_db: Propagate ERANGE error if parse_line fails [BZ #19837] 2016-03-29 11:27:32 +02:00
nss_files Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
alias-lookup.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
bug17079.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
bug-erange.c
databases.def Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
db-Makefile Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
Depend
digits_dots.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
ethers-lookup.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
function.def Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
getent.c Update copyright dates not handled by scripts/update-copyrights. 2016-01-04 16:26:30 +00:00
getnssent_r.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
getnssent.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
getXXbyYY_r.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
getXXbyYY.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
getXXent_r.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
getXXent.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
grp-lookup.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
hosts-lookup.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
key-lookup.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
makedb.c Update copyright dates not handled by scripts/update-copyrights. 2016-01-04 16:26:30 +00:00
Makefile Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
netgrp-lookup.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
network-lookup.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
nss_test1.c
nss.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
nsswitch.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
nsswitch.conf
nsswitch.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
proto-lookup.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
pwd-lookup.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
rewrite_field.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
rpc-lookup.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
service-lookup.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
sgrp-lookup.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
spwd-lookup.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
test-digits-dots.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
test-netdb.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
tst-field.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
tst-nss-getpwent.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
tst-nss-static.c 2012-04-06 Paul Pluzhnikov <ppluzhnikov@google.com> 2012-04-06 13:49:35 -07:00
tst-nss-test1.c Fix nss/tst-nss-test1.c format warning. 2014-11-27 03:24:18 +00:00
valid_field.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
valid_list_field.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
Versions Get canonical name in getaddrinfo from hosts file for AF_INET (fixes 16077) 2013-11-28 17:18:12 +05:30
XXX-lookup.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00