This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch release/2.26/master updated. glibc-2.26-149-g31e2d15
- From: fw at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 17 May 2018 12:42:17 -0000
- Subject: GNU C Library master sources branch release/2.26/master updated. glibc-2.26-149-g31e2d15
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.26/master has been updated
via 31e2d15b808e6c3bd7406eb0c1bef8d76ec6abe2 (commit)
from 1f7c4748d611445065f911ced519b7fb49f82ad5 (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 -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=31e2d15b808e6c3bd7406eb0c1bef8d76ec6abe2
commit 31e2d15b808e6c3bd7406eb0c1bef8d76ec6abe2
Author: Andreas Schwab <schwab@suse.de>
Date: Thu May 17 13:57:29 2018 +0200
Fix crash in resolver on memory allocation failure (bug 23005)
(cherry picked from commit f178e59fa5eefbbd37fde040ae8334aa5c857ee1)
diff --git a/ChangeLog b/ChangeLog
index da8d9a5..05a15bc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2018-03-27 Andreas Schwab <schwab@suse.de>
+
+ [BZ #23005]
+ * resolv/res_send.c (__res_context_send): Return ENOMEM if
+ allocation of private copy of nsaddr_list fails.
+
2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
[BZ #23024]
diff --git a/NEWS b/NEWS
index dcbb2b0..4d360a4 100644
--- a/NEWS
+++ b/NEWS
@@ -118,6 +118,7 @@ The following bugs are resolved with this release:
[22685] powerpc: Fix syscalls during early process initialization
[22715] x86-64: Properly align La_x86_64_retval to VEC_SIZE
[22774] malloc: Integer overflow in malloc (CVE-2018-6551)
+ [23005] resolv: Fix crash in resolver on memory allocation failure
[23024] getlogin_r: return early when linux sentinel value is set
[23037] resolv: Fully initialize struct mmsghdr in send_dg
diff --git a/resolv/res_send.c b/resolv/res_send.c
index 0ca02f9..83f35f6 100644
--- a/resolv/res_send.c
+++ b/resolv/res_send.c
@@ -471,6 +471,11 @@ __res_context_send (struct resolv_context *ctx,
'\0',
sizeof (struct sockaddr_in6)
- sizeof (struct sockaddr_in));
+ else
+ {
+ __set_errno (ENOMEM);
+ return -1;
+ }
}
EXT(statp).nscount = statp->nscount;
}
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 6 ++++++
NEWS | 1 +
resolv/res_send.c | 5 +++++
3 files changed, 12 insertions(+), 0 deletions(-)
hooks/post-receive
--
GNU C Library master sources