This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug nss/19837] nss_db: No retries for some long lines with a larger buffer


https://sourceware.org/bugzilla/show_bug.cgi?id=19837

--- Comment #5 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, release/2.22/master has been updated
       via  240ceafed7a00af8571d56db67a6b8854e418106 (commit)
      from  809cde4a640032f2f87319c9358be4fee8d6d7d5 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=240ceafed7a00af8571d56db67a6b8854e418106

commit 240ceafed7a00af8571d56db67a6b8854e418106
Author: Florian Weimer <fweimer@redhat.com>
Date:   Tue Mar 29 11:27:32 2016 +0200

    nss_db: Propagate ERANGE error if parse_line fails [BZ #19837]

    Reproducer (needs to run as root):

    perl -e \
      'print "large:x:999:" . 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.

    (cherry picked from commit a6033052d08027f745867e5e346852da1959226c)

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog           |    6 ++++++
 nss/nss_db/db-XXX.c |    4 ++--
 2 files changed, 8 insertions(+), 2 deletions(-)

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]