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


apps/s_client.c:1457:11: Call
1455.   #endif
1456.   
1457.       ctx = SSL_CTX_new(meth);
                  ^
1458.       if (ctx == NULL) {
1459.           ERR_print_errors(bio_err);

ssl/ssl_lib.c:2316:21: Call
  2314.           goto err;
  2315.   
  2316.       ret->sessions = lh_SSL_SESSION_new(ssl_session_hash, ssl_session_cmp);
                              ^
  2317.       if (ret->sessions == NULL)
  2318.           goto err;

ssl/ssl_locl.h:581:1: Call
    579.   };
    580.   
    581. > DEFINE_LHASH_OF(SSL_SESSION);
    582.   /* Needed in ssl_cert.c */
    583.   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;

apps/s_client.c:2425:9: Call
2423.           if (prexit != 0)
2424.               print_stuff(bio_c_out, con, 1);
2425.           SSL_free(con);
                ^
2426.       }
2427.   #if !defined(OPENSSL_NO_NEXTPROTONEG)

ssl/ssl_lib.c:921:1: Parameter `s->initial_ctx->sessions->num_nodes`
  919.   }
  920.   
  921. > void SSL_free(SSL *s)
  922.   {
  923.       int i;

ssl/ssl_lib.c:968:5: Call
  966.   
  967.       OPENSSL_free(s->tlsext_hostname);
  968.       SSL_CTX_free(s->initial_ctx);
             ^
  969.   #ifndef OPENSSL_NO_EC
  970.       OPENSSL_free(s->tlsext_ecpointformatlist);

ssl/ssl_lib.c:2424:1: Parameter `a->sessions->num_nodes`
    2422.   }
    2423.   
    2424. > void SSL_CTX_free(SSL_CTX *a)
    2425.   {
    2426.       int i;

ssl/ssl_lib.c:2450:9: Call
    2448.        */
    2449.       if (a->sessions != NULL)
    2450.           SSL_CTX_flush_sessions(a, 0);
                    ^
    2451.   
    2452.       CRYPTO_free_ex_data(CRYPTO_EX_INDEX_SSL_CTX, a, &a->ex_data);

ssl/ssl_sess.c:969:1: Parameter `s->sessions->num_nodes`
      967.   IMPLEMENT_LHASH_DOALL_ARG(SSL_SESSION, TIMEOUT_PARAM);
      968.   
      969. > void SSL_CTX_flush_sessions(SSL_CTX *s, long t)
      970.   {
      971.       unsigned long i;

ssl/ssl_sess.c:982:5: Call
      980.       i = lh_SSL_SESSION_get_down_load(s->sessions);
      981.       lh_SSL_SESSION_set_down_load(s->sessions, 0);
      982.       lh_SSL_SESSION_doall_TIMEOUT_PARAM(tp.cache, timeout_cb, &tp);
                 ^
      983.       lh_SSL_SESSION_set_down_load(s->sessions, i);
      984.       CRYPTO_THREAD_unlock(s->lock);

ssl/ssl_sess.c:967:1: Parameter `lh->num_nodes`
        965.   }
        966.   
        967. > IMPLEMENT_LHASH_DOALL_ARG(SSL_SESSION, TIMEOUT_PARAM);
        968.   
        969.   void SSL_CTX_flush_sessions(SSL_CTX *s, long t)

ssl/ssl_sess.c:967:1: Call
        965.   }
        966.   
        967. > IMPLEMENT_LHASH_DOALL_ARG(SSL_SESSION, TIMEOUT_PARAM);
        968.   
        969.   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) {
