test/servername_test.c:133: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned32 by call to `SSL_free`.
Showing all 16 steps of the trace


test/servername_test.c:104:11: Call
102.           goto end;
103.   
104.       con = SSL_new(ctx);
                 ^
105.       if (!TEST_ptr(con))
106.           goto end;

ssl/ssl_lib.c:673:1: Parameter `ctx->sessions->num_nodes`
  671.   }
  672.   
  673. > SSL *SSL_new(SSL_CTX *ctx)
  674.   {
  675.       SSL *s;

test/servername_test.c:133:5: Call
131.   end:
132.       OPENSSL_free(hostname);
133.       SSL_free(con);
           ^
134.       SSL_CTX_free(ctx);
135.       return ret;

ssl/ssl_lib.c:1138:1: Parameter `s->ctx->sessions->num_nodes`
  1136.   }
  1137.   
  1138. > void SSL_free(SSL *s)
  1139.   {
  1140.       int i;

ssl/ssl_lib.c:1213:5: Call
  1211.           s->method->ssl_free(s);
  1212.   
  1213.       SSL_CTX_free(s->ctx);
              ^
  1214.   
  1215.       ASYNC_WAIT_CTX_free(s->waitctx);

ssl/ssl_lib.c:3163:1: Parameter `a->sessions->num_nodes`
    3161.   }
    3162.   
    3163. > void SSL_CTX_free(SSL_CTX *a)
    3164.   {
    3165.       int i;

ssl/ssl_lib.c:3189:9: Call
    3187.        */
    3188.       if (a->sessions != NULL)
    3189.           SSL_CTX_flush_sessions(a, 0);
                    ^
    3190.   
    3191.       CRYPTO_free_ex_data(CRYPTO_EX_INDEX_SSL_CTX, a, &a->ex_data);

ssl/ssl_sess.c:1106:1: Parameter `s->sessions->num_nodes`
      1104.   IMPLEMENT_LHASH_DOALL_ARG(SSL_SESSION, TIMEOUT_PARAM);
      1105.   
      1106. > void SSL_CTX_flush_sessions(SSL_CTX *s, long t)
      1107.   {
      1108.       unsigned long i;

ssl/ssl_sess.c:1119:5: Call
      1117.       i = lh_SSL_SESSION_get_down_load(s->sessions);
      1118.       lh_SSL_SESSION_set_down_load(s->sessions, 0);
      1119.       lh_SSL_SESSION_doall_TIMEOUT_PARAM(tp.cache, timeout_cb, &tp);
                  ^
      1120.       lh_SSL_SESSION_set_down_load(s->sessions, i);
      1121.       CRYPTO_THREAD_unlock(s->lock);

ssl/ssl_sess.c:1104:1: Parameter `lh->num_nodes`
        1102.   }
        1103.   
        1104. > IMPLEMENT_LHASH_DOALL_ARG(SSL_SESSION, TIMEOUT_PARAM);
        1105.   
        1106.   void SSL_CTX_flush_sessions(SSL_CTX *s, long t)

ssl/ssl_sess.c:1104:1: Call
        1102.   }
        1103.   
        1104. > IMPLEMENT_LHASH_DOALL_ARG(SSL_SESSION, TIMEOUT_PARAM);
        1105.   
        1106.   void SSL_CTX_flush_sessions(SSL_CTX *s, long t)

crypto/lhash/lhash.c:218:1: Parameter `lh->num_nodes`
          216.   }
          217.   
          218. > void OPENSSL_LH_doall_arg(OPENSSL_LHASH *lh, OPENSSL_LH_DOALL_FUNCARG func, void *arg)
          219.   {
          220.       doall_util_fn(lh, 1, (OPENSSL_LH_DOALL_FUNC)0, func, arg);

crypto/lhash/lhash.c:220:5: Call
          218.   void OPENSSL_LH_doall_arg(OPENSSL_LHASH *lh, OPENSSL_LH_DOALL_FUNCARG func, void *arg)
          219.   {
          220.       doall_util_fn(lh, 1, (OPENSSL_LH_DOALL_FUNC)0, func, arg);
                     ^
          221.   }
          222.   

crypto/lhash/lhash.c:186:1: <LHS trace>
184.   }
185.   
186. > static void doall_util_fn(OPENSSL_LHASH *lh, int use_arg,
187.                             OPENSSL_LH_DOALL_FUNC func,
188.                             OPENSSL_LH_DOALL_FUNCARG func_arg, void *arg)

crypto/lhash/lhash.c:186:1: Parameter `lh->num_nodes`
            184.   }
            185.   
            186. > static void doall_util_fn(OPENSSL_LHASH *lh, int use_arg,
            187.                             OPENSSL_LH_DOALL_FUNC func,
            188.                             OPENSSL_LH_DOALL_FUNCARG func_arg, void *arg)

crypto/lhash/lhash.c:200:10: Binary operation: ([0, +oo] - 1):unsigned32 by call to `SSL_free` 
            198.        * memory leaks otherwise
            199.        */
            200.       for (i = lh->num_nodes - 1; i >= 0; i--) {
                            ^
            201.           a = lh->b[i];
            202.           while (a != NULL) {
