This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug nss/20237] nss_db: get*ent segfaults without preceding set*ent
- From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Thu, 18 Aug 2016 12:55:17 +0000
- Subject: [Bug nss/20237] nss_db: get*ent segfaults without preceding set*ent
- Auto-submitted: auto-generated
- References: <bug-20237-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=20237
--- 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.23/master has been updated
via 79ad3fa2b1f38997be255d4eb709da928b66796a (commit)
from 395b1b9cbfda75fcdef0a9654d7ef6bf8bf7db11 (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=79ad3fa2b1f38997be255d4eb709da928b66796a
commit 79ad3fa2b1f38997be255d4eb709da928b66796a
Author: Florian Weimer <fweimer@redhat.com>
Date: Sat Jun 11 12:12:56 2016 +0200
nss_db: Fix initialization of iteration position [BZ #20237]
When get*ent is called without a preceding set*ent, we need
to set the initial iteration position in get*ent.
Reproducer: Add “services: db files” to /etc/nsswitch.conf, then run
“perl -e getservent”. It will segfault before this change, and exit
silently after it.
(cherry picked from commit 31d0a4fa646db8b8c97ce24e0ec0a7b73de4fca1)
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 7 +++++++
nss/nss_db/db-XXX.c | 8 +++++++-
2 files changed, 14 insertions(+), 1 deletions(-)
--
You are receiving this mail because:
You are on the CC list for the bug.