Subject: [libssh2] #217: not multi-threaded safe

[libssh2] #217: not multi-threaded safe

From: libssh2 Trac <trac_at_libssh2.stuge.se>
Date: Wed, 04 May 2011 09:05:18 -0000

#217: not multi-threaded safe
---------------------------+------------------------------------------------
  Reporter: jianjingchen | Owner:
      Type: defect | Status: new
  Priority: normal | Milestone: 1.2.9
 Component: API | Version: 1.2.8
  Keywords: | Blocks:
Blocked By: |
---------------------------+------------------------------------------------
 I find function make_ctr_evp in file openssl.c is not is not thread safe,
 only one EVP_CIPHER is used for some threads concurrently.

 Function _libssh2_transport_read in file transport.c use function decrypt
 two times. for first time, p->payload should be NULL, then
 LIBSSH2_FREE(session, p->payload) will caught exception.

-- 
Ticket URL: <http://trac.libssh2.org/ticket/217>
libssh2 <http://trac.libssh2.org/>
C library for writing portable SSH2 clients
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2011-05-04