apps/s_client.c:1572: error: INTEGER_OVERFLOW_L2
  ([0, 8] - 1):unsigned32 by call to `SSL_free`.
Showing all 15 steps of the trace


apps/s_client.c:827:6: Call
825.   		}
826.   
827.   	ctx=SSL_CTX_new(meth);
            ^
828.   	if (ctx == NULL)
829.   		{

ssl/ssl_lib.c:1523:16: Call
  1521.   	ret->app_verify_cookie_cb=0;
  1522.   
  1523.   	ret->sessions=lh_SSL_SESSION_new();
                         ^
  1524.   	if (ret->sessions == NULL) goto err;
  1525.   	ret->cert_store=X509_STORE_new();

crypto/lhash/lhash.c:127:2: Assignment
    125.   	ret->comp=((c == NULL)?(LHASH_COMP_FN_TYPE)strcmp:c);
    126.   	ret->hash=((h == NULL)?(LHASH_HASH_FN_TYPE)lh_strhash:h);
    127.   	ret->num_nodes=MIN_NODES/2;
            ^
    128.   	ret->num_alloc_nodes=MIN_NODES;
    129.   	ret->p=0;

apps/s_client.c:1572:3: Call
1570.   		if (prexit != 0)
1571.   			print_stuff(bio_c_out,con,1);
1572.   		SSL_free(con);
          ^
1573.   		}
1574.   	if (ctx != NULL) SSL_CTX_free(ctx);

ssl/ssl_lib.c:488:1: Parameter `s->initial_ctx->sessions->num_nodes`
  486.   	}
  487.   
  488. > void SSL_free(SSL *s)
  489.   	{
  490.   	int i;

ssl/ssl_lib.c:552:22: Call
  550.   	if (s->tlsext_hostname)
  551.   		OPENSSL_free(s->tlsext_hostname);
  552.   	if (s->initial_ctx) SSL_CTX_free(s->initial_ctx);
                              ^
  553.   #ifndef OPENSSL_NO_EC
  554.   	if (s->tlsext_ecpointformatlist) OPENSSL_free(s->tlsext_ecpointformatlist);

ssl/ssl_lib.c:1652:1: Parameter `a->sessions->num_nodes`
    1650.   #endif
    1651.   
    1652. > void SSL_CTX_free(SSL_CTX *a)
    1653.   	{
    1654.   	int i;

ssl/ssl_lib.c:1684:3: Call
    1682.   	 */
    1683.   	if (a->sessions != NULL)
    1684.   		SSL_CTX_flush_sessions(a,0);
              ^
    1685.   
    1686.   	CRYPTO_free_ex_data(CRYPTO_EX_INDEX_SSL_CTX, a, &a->ex_data);

ssl/ssl_sess.c:916:1: Parameter `s->sessions->num_nodes`
      914.   static IMPLEMENT_LHASH_DOALL_ARG_FN(timeout, SSL_SESSION, TIMEOUT_PARAM)
      915.   
      916. > void SSL_CTX_flush_sessions(SSL_CTX *s, long t)
      917.   	{
      918.   	unsigned long i;

ssl/ssl_sess.c:928:2: Call
      926.   	i=CHECKED_LHASH_OF(SSL_SESSION, tp.cache)->down_load;
      927.   	CHECKED_LHASH_OF(SSL_SESSION, tp.cache)->down_load=0;
      928.   	lh_SSL_SESSION_doall_arg(tp.cache, LHASH_DOALL_ARG_FN(timeout),
              ^
      929.   				 TIMEOUT_PARAM, &tp);
      930.   	CHECKED_LHASH_OF(SSL_SESSION, tp.cache)->down_load=i;

crypto/lhash/lhash.c:305:1: Parameter `lh->num_nodes`
        303.   	}
        304.   
        305. > void lh_doall_arg(_LHASH *lh, LHASH_DOALL_ARG_FN_TYPE func, void *arg)
        306.   	{
        307.   	doall_util_fn(lh, 1, (LHASH_DOALL_FN_TYPE)0, func, arg);

crypto/lhash/lhash.c:307:2: Call
        305.   void lh_doall_arg(_LHASH *lh, LHASH_DOALL_ARG_FN_TYPE func, void *arg)
        306.   	{
        307.   	doall_util_fn(lh, 1, (LHASH_DOALL_FN_TYPE)0, func, arg);
                ^
        308.   	}
        309.   

crypto/lhash/lhash.c:270:1: <LHS trace>
268.   	}
269.   
270. > static void doall_util_fn(_LHASH *lh, int use_arg, LHASH_DOALL_FN_TYPE func,
271.   			  LHASH_DOALL_ARG_FN_TYPE func_arg, void *arg)
272.   	{

crypto/lhash/lhash.c:270:1: Parameter `lh->num_nodes`
          268.   	}
          269.   
          270. > static void doall_util_fn(_LHASH *lh, int use_arg, LHASH_DOALL_FN_TYPE func,
          271.   			  LHASH_DOALL_ARG_FN_TYPE func_arg, void *arg)
          272.   	{

crypto/lhash/lhash.c:281:7: Binary operation: ([0, 8] - 1):unsigned32 by call to `SSL_free` 
          279.   	/* reverse the order so we search from 'top to bottom'
          280.   	 * We were having memory leaks otherwise */
          281.   	for (i=lh->num_nodes-1; i>=0; i--)
                       ^
          282.   		{
          283.   		a=lh->b[i];
