This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug network/16743] getaddrinfo uses uninitialized data when processing nscd answer
- From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Mon, 24 Mar 2014 15:53:18 +0000
- Subject: [Bug network/16743] getaddrinfo uses uninitialized data when processing nscd answer
- Auto-submitted: auto-generated
- References: <bug-16743-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=16743
--- Comment #1 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, master has been updated
via a071766ebfd853179ac39f9773f894029bf86d36 (commit)
from 27c673b8de3072caf35bc795aa1cd77a7ca18771 (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=a071766ebfd853179ac39f9773f894029bf86d36
commit a071766ebfd853179ac39f9773f894029bf86d36
Author: Andreas Schwab <schwab@suse.de>
Date: Thu Mar 20 15:05:25 2014 +0100
Fix use of half-initialized result in getaddrinfo when using nscd (bug
16743)
This fixes a bug in the way the results from __nscd_getai are collected:
for every returned result a new entry is first added to the
gaih_addrtuple list, but if that result doesn't match the request this
entry remains uninitialized. So for this non-matching result an extra
result with uninitialized content is returned.
To reproduce (with nscd running):
$ getent ahostsv4 localhost
127.0.0.1 STREAM localhost
127.0.0.1 DGRAM
127.0.0.1 RAW
(null) STREAM
(null) DGRAM
(null) RAW
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 6 ++++++
NEWS | 3 ++-
sysdeps/posix/getaddrinfo.c | 8 ++++++++
3 files changed, 16 insertions(+), 1 deletions(-)
--
You are receiving this mail because:
You are on the CC list for the bug.