Subject: Re: [libssh2] #168: Memory leak in libssh2_session_startup

Re: [libssh2] #168: Memory leak in libssh2_session_startup

From: libssh2 Trac <trac_at_libssh2.stuge.se>
Date: Wed, 01 Apr 2015 18:09:55 -0000

#168: Memory leak in libssh2_session_startup
-----------------------+-------------------
  Reporter: jcollins | Owner:
      Type: defect | Status: new
  Priority: normal | Milestone:
 Component: API | Version: 1.2.4
Resolution: | Keywords:
Blocked By: | Blocks:
-----------------------+-------------------

Comment (by ssbssa):

 The problem here is that gcry_mpi_scan() doesn't use the bignum provided
 by the argument, instead it creates a new one and overrides the one
 created by gcry_mpi_new() before.

 I've attached a possible solution.

-- 
Ticket URL: <https://trac.libssh2.org/ticket/168#comment:2>
libssh2 <https://trac.libssh2.org/>
C library for writing portable SSH2 clients
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2015-04-01