#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

Reply via email to