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: Thu, 10 Sep 2015 10:13:41 +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 #4 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.19/master has been updated
via 1e7df7fdefe82764488875f8a9c0cd993b56b2b1 (commit)
from 126e13008672dddfc757f7260cb8d6ff7c77a4b5 (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=1e7df7fdefe82764488875f8a9c0cd993b56b2b1
commit 1e7df7fdefe82764488875f8a9c0cd993b56b2b1
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
(cherry picked from commit a071766ebfd853179ac39f9773f894029bf86d36)
Conflicts:
ChangeLog
NEWS
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 6 ++++++
NEWS | 6 +++---
sysdeps/posix/getaddrinfo.c | 8 ++++++++
3 files changed, 17 insertions(+), 3 deletions(-)
--
You are receiving this mail because:
You are on the CC list for the bug.