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


test/sslapitest.c:5673:10: Call
5671.                          verify_cb);
5672.   
5673.       if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl,
                 ^
5674.                                         NULL, NULL))
5675.               || !TEST_true(create_ssl_connection(serverssl, clientssl,

test/ssltestlib.c:669:15: Call
  667.       if (*sssl != NULL)
  668.           serverssl = *sssl;
  669.       else if (!TEST_ptr(serverssl = SSL_new(serverctx)))
                       ^
  670.           goto error;
  671.       if (*cssl != NULL)

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

test/sslapitest.c:5682:5: Call
5680.   
5681.    end:
5682.       SSL_free(serverssl);
            ^
5683.       SSL_free(clientssl);
5684.       SSL_CTX_free(sctx);

ssl/ssl_lib.c:1133:1: Parameter `s->ctx->sessions->num_nodes`
  1131.   }
  1132.   
  1133. > void SSL_free(SSL *s)
  1134.   {
  1135.       int i;

ssl/ssl_lib.c:1206:5: Call
  1204.       RECORD_LAYER_release(&s->rlayer);
  1205.   
  1206.       SSL_CTX_free(s->ctx);
              ^
  1207.   
  1208.       ASYNC_WAIT_CTX_free(s->waitctx);

ssl/ssl_lib.c:3078:1: Parameter `a->sessions->num_nodes`
    3076.   }
    3077.   
    3078. > void SSL_CTX_free(SSL_CTX *a)
    3079.   {
    3080.       int i;

ssl/ssl_lib.c:3104:9: Call
    3102.        */
    3103.       if (a->sessions != NULL)
    3104.           SSL_CTX_flush_sessions(a, 0);
                    ^
    3105.   
    3106.       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:209:1: Parameter `lh->num_nodes`
          207.   }
          208.   
          209. > void OPENSSL_LH_doall_arg(OPENSSL_LHASH *lh, OPENSSL_LH_DOALL_FUNCARG func, void *arg)
          210.   {
          211.       doall_util_fn(lh, 1, (OPENSSL_LH_DOALL_FUNC)0, func, arg);

crypto/lhash/lhash.c:211:5: Call
          209.   void OPENSSL_LH_doall_arg(OPENSSL_LHASH *lh, OPENSSL_LH_DOALL_FUNCARG func, void *arg)
          210.   {
          211.       doall_util_fn(lh, 1, (OPENSSL_LH_DOALL_FUNC)0, func, arg);
                     ^
          212.   }
          213.   

crypto/lhash/lhash.c:177:1: <LHS trace>
175.   }
176.   
177. > static void doall_util_fn(OPENSSL_LHASH *lh, int use_arg,
178.                             OPENSSL_LH_DOALL_FUNC func,
179.                             OPENSSL_LH_DOALL_FUNCARG func_arg, void *arg)

crypto/lhash/lhash.c:177:1: Parameter `lh->num_nodes`
            175.   }
            176.   
            177. > static void doall_util_fn(OPENSSL_LHASH *lh, int use_arg,
            178.                             OPENSSL_LH_DOALL_FUNC func,
            179.                             OPENSSL_LH_DOALL_FUNCARG func_arg, void *arg)

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