From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30374 invoked by alias); 13 Feb 2014 11:51:24 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Received: (qmail 30340 invoked by uid 48); 13 Feb 2014 11:51:21 -0000 From: "schwab@linux-m68k.org" To: glibc-bugs@sourceware.org Subject: [Bug network/16574] New: Memory leak in _nss_dns_gethostbyname4_r with big DNS answer Date: Thu, 13 Feb 2014 11:51:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: network X-Bugzilla-Version: 2.11 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: schwab@linux-m68k.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-02/txt/msg00433.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=16574 Bug ID: 16574 Summary: Memory leak in _nss_dns_gethostbyname4_r with big DNS answer Product: glibc Version: 2.11 Status: NEW Severity: normal Priority: P2 Component: network Assignee: unassigned at sourceware dot org Reporter: schwab@linux-m68k.org When resolving both IPv4 and IPv6 and the answers from the DNS server are too big to fit together in the supplied buffer then a new buffer for the second answer is allocated by send_vc / send_dg, but _nss_dns_gethostbyname4_r fails to deallocate it. This is the only place where the resolver functions are called in such a way that they may work with two buffers. -- You are receiving this mail because: You are on the CC list for the bug.