[Bug 1849] New: Memory Leak in authmethod_get

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Sun Jan 23 23:55:59 EST 2011


https://bugzilla.mindrot.org/show_bug.cgi?id=1849

           Summary: Memory Leak in authmethod_get
           Product: Portable OpenSSH
           Version: 5.6p1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ssh
        AssignedTo: unassigned-bugs at mindrot.org
        ReportedBy: djgosselin at gmail.com


Created attachment 1982
  --> https://bugzilla.mindrot.org/attachment.cgi?id=1982
SSH Memory Leak Patch

Code inspection revealed a memory leak in the authmethod_get function. 
authmethod_get calls the function match_list which in turn creates a
string on the heap and returns it to authmethod_get.  authmethod_get
does not free the returned buffer containing the string once it has
finished with it (leaving the string on the heap).  The attached patch
fixes this memory leak.

-- 
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list