glibc/nss/nss_db
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
..
db-init.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
db-initgroups.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
db-netgrp.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
db-open.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
db-XXX.c nss_db: Propagate ERANGE error if parse_line fails [BZ #19837] 2016-03-29 11:27:32 +02:00
nss_db.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00