[Bug libc/23679] gethostid: Missing NULL check for gethostbyname_r result
cvs-commit at gcc dot gnu.org
sourceware-bugzilla@sourceware.org
Thu Sep 20 10:58:00 GMT 2018
https://sourceware.org/bugzilla/show_bug.cgi?id=23679
--- Comment #12 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.28/master has been updated
via 307d04334d516bb180f484a2b283f97310bfee66 (commit)
via e7d22db29cfdd2f1fb97a70a76fa53d151569945 (commit)
from 1fe2b9ca8a50aaa789d72944b5a91f1d35337adc (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=307d04334d516bb180f484a2b283f97310bfee66
commit 307d04334d516bb180f484a2b283f97310bfee66
Author: Florian Weimer <fweimer@redhat.com>
Date: Thu Sep 20 12:03:01 2018 +0200
misc: New test misc/tst-gethostid
The empty /etc/hosts file used to trigger bug 23679.
(cherry picked from commit db9a8ad4ff3fc58e3773a9a4d0cabe3c1bc9c94c)
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=e7d22db29cfdd2f1fb97a70a76fa53d151569945
commit e7d22db29cfdd2f1fb97a70a76fa53d151569945
Author: Mingli Yu <Mingli.Yu@windriver.com>
Date: Thu Sep 20 12:41:13 2018 +0200
Linux gethostid: Check for NULL value from gethostbyname_r [BZ #23679]
A NULL value can happen with certain gethostbyname_r failures.
(cherry picked from commit 1214ba06e6771acb953a190091b0f6055c64fd25)
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 11 ++++
NEWS | 1 +
misc/Makefile | 7 ++
misc/tst-gethostid.c | 108 +++++++++++++++++++++++++++++++++++
sysdeps/unix/sysv/linux/gethostid.c | 4 +-
5 files changed, 129 insertions(+), 2 deletions(-)
create mode 100644 misc/tst-gethostid.c
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list