[glibc] 01/01: debian/patches/any/submitted-resolver-leak.diff: new patch to fix a memory leak in the resolver. Closes: #818178.
This is an automated email from the git hooks/post-receive script.
aurel32 pushed a commit to branch sid
in repository glibc.
commit dc78c3d72cdd314bc259606d416e91330e2316c1
Author: Aurelien Jarno <aurelien@aurel32.net>
Date: Tue Mar 15 08:58:13 2016 +0100
debian/patches/any/submitted-resolver-leak.diff: new patch to fix a memory leak in the resolver. Closes: #818178.
---
debian/changelog | 2 ++
debian/patches/any/submitted-resolver-leak.diff | 16 ++++++++++++++++
debian/patches/series | 1 +
3 files changed, 19 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index e91eb3d..8a7a5da 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,8 @@ glibc (2.22-4) UNRELEASED; urgency=medium
[ Aurelien Jarno ]
* debian/patches/localedata/fr_CA-first_weekday.diff: drop. Closes:
#769051.
+ * debian/patches/any/submitted-resolver-leak.diff: new patch to fix a
+ memory leak in the resolver. Closes: #818178.
[ Samuel Thibault ]
* patches/hurd-i386/tg-sendmsg-SCM_RIGHTS.diff,tg-sendmsg-SCM_CREDS.diff:
diff --git a/debian/patches/any/submitted-resolver-leak.diff b/debian/patches/any/submitted-resolver-leak.diff
new file mode 100644
index 0000000..f9dae65
--- /dev/null
+++ b/debian/patches/any/submitted-resolver-leak.diff
@@ -0,0 +1,16 @@
+2016-02-09 Andreas Schwab <schwab@suse.de>
+
+ * resolv/res_init.c (__res_iclose): Use statp->nscount instead of
+ statp->_u._ext.nscount as loop count.
+
+--- a/resolv/res_init.c
++++ b/resolv/res_init.c
+@@ -594,7 +594,7 @@ __res_iclose(res_state statp, bool free_addr) {
+ statp->_vcsock = -1;
+ statp->_flags &= ~(RES_F_VC | RES_F_CONN);
+ }
+- for (ns = 0; ns < statp->_u._ext.nscount; ns++)
++ for (ns = 0; ns < statp->nscount; ns++)
+ if (statp->_u._ext.nsaddrs[ns]) {
+ if (statp->_u._ext.nssocks[ns] != -1) {
+ close_not_cancel_no_status(statp->_u._ext.nssocks[ns]);
diff --git a/debian/patches/series b/debian/patches/series
index c069d96..731879d 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -241,3 +241,4 @@ any/cvs-grantpt-pty-owner.diff
any/cvs-bits-libc-stdio-lock.diff
any/submitted-hle-checking-mutex.diff
any/submitted-dlopen-noload.diff
+any/submitted-resolver-leak.diff
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-glibc/glibc.git
Reply to: