[Bug 2182] New: getopt(3) command-line arguments memleaks

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Wed Dec 11 01:23:21 EST 2013


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

            Bug ID: 2182
           Summary: getopt(3) command-line arguments memleaks
           Product: Portable OpenSSH
           Version: 6.4p1
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: ssh
          Assignee: unassigned-bugs at mindrot.org
          Reporter: tcunha at gmx.com

Created attachment 2386
  --> https://bugzilla.mindrot.org/attachment.cgi?id=2386&action=edit
Plug getopt(3) command-line arguments memleaks

Some options, when used more than once, are currently leaking memory.
For instance:
    $ ssh -Elog1 -Elog2 -carcfour -caes128-ctr

I've decided to remove the xstrdup call and used a simple assignment to
optarg when specifying a log file, instead of freeing it previously,
since it's only used once in log_redirect_stderr_to.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list