This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug network/16574] New: Memory leak in _nss_dns_gethostbyname4_r with big DNS answer
- From: "schwab at linux-m68k dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Thu, 13 Feb 2014 11:51:20 +0000
- Subject: [Bug network/16574] New: Memory leak in _nss_dns_gethostbyname4_r with big DNS answer
- Auto-submitted: auto-generated
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.