This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug network/16574] New: Memory leak in _nss_dns_gethostbyname4_r with big DNS answer


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]