test/clienthellotest.c:227: error: INTEGER_OVERFLOW_L2
  ([0, 8] - 1):unsigned32 by call to `SSL_free`.
Showing all 18 steps of the trace


test/clienthellotest.c:78:11: Call
76.        * produced when we try to connect
77.        */
78.       ctx = SSL_CTX_new(TLS_method());
                ^
79.       if (ctx == NULL)
80.           goto end;

ssl/ssl_lib.c:2661:21: Call
  2659.           goto err;
  2660.   
  2661.       ret->sessions = lh_SSL_SESSION_new(ssl_session_hash, ssl_session_cmp);
                              ^
  2662.       if (ret->sessions == NULL)
  2663.           goto err;

ssl/ssl_locl.h:689:1: Call
    687.   } CLIENTHELLO_MSG;
    688.   
    689. > DEFINE_LHASH_OF(SSL_SESSION);
    690.   /* Needed in ssl_cert.c */
    691.   DEFINE_LHASH_OF(X509_NAME);

crypto/lhash/lhash.c:37:5: Assignment
      35.       ret->comp = ((c == NULL) ? (OPENSSL_LH_COMPFUNC)strcmp : c);
      36.       ret->hash = ((h == NULL) ? (OPENSSL_LH_HASHFUNC)OPENSSL_LH_strhash : h);
      37.       ret->num_nodes = MIN_NODES / 2;
                ^
      38.       ret->num_alloc_nodes = MIN_NODES;
      39.       ret->pmax = MIN_NODES / 2;

test/clienthellotest.c:227:5: Call
225.   
226.   end:
227.       SSL_free(con);
           ^
228.       SSL_CTX_free(ctx);
229.       SSL_SESSION_free(sess);

ssl/ssl_lib.c:963:1: Parameter `s->ctx->sessions->num_nodes`
  961.   }
  962.   
  963. > void SSL_free(SSL *s)
  964.   {
  965.       int i;

ssl/ssl_lib.c:1030:5: Call
  1028.       RECORD_LAYER_release(&s->rlayer);
  1029.   
  1030.       SSL_CTX_free(s->ctx);
              ^
  1031.   
  1032.       ASYNC_WAIT_CTX_free(s->waitctx);

ssl/ssl_lib.c:2778:1: Parameter `a->sessions->num_nodes`
    2776.   }
    2777.   
    2778. > void SSL_CTX_free(SSL_CTX *a)
    2779.   {
    2780.       int i;

ssl/ssl_lib.c:2804:9: Call
    2802.        */
    2803.       if (a->sessions != NULL)
    2804.           SSL_CTX_flush_sessions(a, 0);
                    ^
    2805.   
    2806.       CRYPTO_free_ex_data(CRYPTO_EX_INDEX_SSL_CTX, a, &a->ex_data);

ssl/ssl_sess.c:1020:1: Parameter `s->sessions->num_nodes`
      1018.   IMPLEMENT_LHASH_DOALL_ARG(SSL_SESSION, TIMEOUT_PARAM);
      1019.   
      1020. > void SSL_CTX_flush_sessions(SSL_CTX *s, long t)
      1021.   {
      1022.       unsigned long i;

ssl/ssl_sess.c:1033:5: Call
      1031.       i = lh_SSL_SESSION_get_down_load(s->sessions);
      1032.       lh_SSL_SESSION_set_down_load(s->sessions, 0);
      1033.       lh_SSL_SESSION_doall_TIMEOUT_PARAM(tp.cache, timeout_cb, &tp);
                  ^
      1034.       lh_SSL_SESSION_set_down_load(s->sessions, i);
      1035.       CRYPTO_THREAD_unlock(s->lock);

ssl/ssl_sess.c:1018:1: Parameter `lh->num_nodes`
        1016.   }
        1017.   
        1018. > IMPLEMENT_LHASH_DOALL_ARG(SSL_SESSION, TIMEOUT_PARAM);
        1019.   
        1020.   void SSL_CTX_flush_sessions(SSL_CTX *s, long t)

ssl/ssl_sess.c:1018:1: Call
        1016.   }
        1017.   
        1018. > IMPLEMENT_LHASH_DOALL_ARG(SSL_SESSION, TIMEOUT_PARAM);
        1019.   
        1020.   void SSL_CTX_flush_sessions(SSL_CTX *s, long t)

crypto/lhash/lhash.c:182:1: Parameter `lh->num_nodes`
          180.   }
          181.   
          182. > void OPENSSL_LH_doall_arg(OPENSSL_LHASH *lh, OPENSSL_LH_DOALL_FUNCARG func, void *arg)
          183.   {
          184.       doall_util_fn(lh, 1, (OPENSSL_LH_DOALL_FUNC)0, func, arg);

crypto/lhash/lhash.c:184:5: Call
          182.   void OPENSSL_LH_doall_arg(OPENSSL_LHASH *lh, OPENSSL_LH_DOALL_FUNCARG func, void *arg)
          183.   {
          184.       doall_util_fn(lh, 1, (OPENSSL_LH_DOALL_FUNC)0, func, arg);
                     ^
          185.   }
          186.   

crypto/lhash/lhash.c:150:1: <LHS trace>
148.   }
149.   
150. > static void doall_util_fn(OPENSSL_LHASH *lh, int use_arg,
151.                             OPENSSL_LH_DOALL_FUNC func,
152.                             OPENSSL_LH_DOALL_FUNCARG func_arg, void *arg)

crypto/lhash/lhash.c:150:1: Parameter `lh->num_nodes`
            148.   }
            149.   
            150. > static void doall_util_fn(OPENSSL_LHASH *lh, int use_arg,
            151.                             OPENSSL_LH_DOALL_FUNC func,
            152.                             OPENSSL_LH_DOALL_FUNCARG func_arg, void *arg)

crypto/lhash/lhash.c:164:10: Binary operation: ([0, 8] - 1):unsigned32 by call to `SSL_free` 
            162.        * memory leaks otherwise
            163.        */
            164.       for (i = lh->num_nodes - 1; i >= 0; i--) {
                            ^
            165.           a = lh->b[i];
            166.           while (a != NULL) {
