This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug network/19787] Missing and incorrect truncation checks in getnameinfo
- From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Sat, 12 Nov 2016 06:39:59 +0000
- Subject: [Bug network/19787] Missing and incorrect truncation checks in getnameinfo
- Auto-submitted: auto-generated
- References: <bug-19787-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=19787
--- Comment #9 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, gentoo/2.23 has been updated
via 4ebe6340be509bf9c4aee099dd6519b7daf25f91 (commit)
from 09254dacddd1a05b381e98d0c136d6a0a254011a (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=4ebe6340be509bf9c4aee099dd6519b7daf25f91
commit 4ebe6340be509bf9c4aee099dd6519b7daf25f91
Author: Florian Weimer <fweimer@redhat.com>
Date: Wed May 4 14:45:17 2016 +0200
getnameinfo: Return EAI_OVERFLOW in more cases [BZ #19787]
The AF_LOCAL and AF_INET/AF_INET6 non-numerci service conversion
did not return EAI_OVERFLOW if the supplied buffer was too small,
silently returning truncated data. In the AF_INET/AF_INET6
numeric cases, the snprintf return value checking was incorrect.
(cherry picked from commit 066746783d6c6c0f61b39c741177e24a9b398a20)
(cherry picked from commit f8020794aea5d4feb38683fc8301ee04a4fc4759)
-----------------------------------------------------------------------
Summary of changes:
inet/getnameinfo.c | 103 ++++++++++++++++++++++++++--------------------------
1 files changed, 51 insertions(+), 52 deletions(-)
--
You are receiving this mail because:
You are on the CC list for the bug.