bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/15356] New: BFD's decompress_contents can maybe leak memor


From: tromey at redhat dot com
Subject: [Bug binutils/15356] New: BFD's decompress_contents can maybe leak memory
Date: Wed, 10 Apr 2013 14:50:18 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=15356

             Bug #: 15356
           Summary: BFD's decompress_contents can maybe leak memory
           Product: binutils
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: binutils
        AssignedTo: address@hidden
        ReportedBy: address@hidden
    Classification: Unclassified


BFD's compress.c:decompress_contents has a couple
of return paths that do not call inflateReset.
I think this can leak memory.
A simple fix seems to be replacing "return FALSE" with "break"
in both places it appears in the loop; or alternatively
calling inflateEnd before each return.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]