Hi,

  I have found strange memory allocation behaviour in one of OpenSSL demo
programs - demos/bio/saccept.c. The example does not free allocated
memory and after each loop iteration (new connection) program uses more
memory. I am not sure whether it is a problem in OpenSSL or in particular
example. In the latter case, can anybody update the demo program please?

  I am not sure about other platforms, but this occured under Win2K.
Both OpenSSL 0.9.6a and the example were compiled using Visual C 6 SP4.

  One more problem - I added some debugging code into the program as
suggested in this list. To the begging I added

CRYPTO_malloc_debug_init();
CRYPTO_dbg_set_options(V_CRYPTO_MDEBUG_ALL);
CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON) ;
   
and to the end
  
ERR_free_strings();
ERR_remove_state(0);
CRYPTO_mem_leaks_fp(stderr);

The last line (CRYPTO_mem_leaks_fp) caused an illegal memory access
error. Is this a bug?

Regards,
Mark


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to