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


test/sslapitest.c:3865:10: Call
3863.   # endif
3864.   
3865.       if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl,
                 ^
3866.                                                NULL, NULL)))
3867.           goto end;

test/ssltestlib.c:893:15: Call
  891.       if (*sssl != NULL)
  892.           serverssl = *sssl;
  893.       else if (!TEST_ptr(serverssl = SSL_new(serverctx)))
                       ^
  894.           goto error;
  895.       if (*cssl != NULL)

ssl/ssl_lib.c:679:1: Parameter `ctx->sessions->num_nodes`
    677.   }
    678.   
    679. > SSL *SSL_new(SSL_CTX *ctx)
    680.   {
    681.       SSL *s;

test/sslapitest.c:3893:5: Call
3891.       testresult = 1;
3892.    end:
3893.       SSL_free(serverssl);
            ^
3894.       SSL_free(clientssl);
3895.       SSL_CTX_free(sctx);

ssl/ssl_lib.c:1145:1: Parameter `s->ctx->sessions->num_nodes`
  1143.   }
  1144.   
  1145. > void SSL_free(SSL *s)
  1146.   {
  1147.       int i;

ssl/ssl_lib.c:1224:5: Call
  1222.           s->method->ssl_free(s);
  1223.   
  1224.       SSL_CTX_free(s->ctx);
              ^
  1225.   
  1226.       ASYNC_WAIT_CTX_free(s->waitctx);

ssl/ssl_lib.c:3240:1: Parameter `a->sessions->num_nodes`
    3238.   }
    3239.   
    3240. > void SSL_CTX_free(SSL_CTX *a)
    3241.   {
    3242.       int i;

ssl/ssl_lib.c:3266:9: Call
    3264.        */
    3265.       if (a->sessions != NULL)
    3266.           SSL_CTX_flush_sessions(a, 0);
                    ^
    3267.   
    3268.       CRYPTO_free_ex_data(CRYPTO_EX_INDEX_SSL_CTX, a, &a->ex_data);

ssl/ssl_sess.c:1069:1: Parameter `s->sessions->num_nodes`
      1067.   IMPLEMENT_LHASH_DOALL_ARG(SSL_SESSION, TIMEOUT_PARAM);
      1068.   
      1069. > void SSL_CTX_flush_sessions(SSL_CTX *s, long t)
      1070.   {
      1071.       unsigned long i;

ssl/ssl_sess.c:1082:5: Call
      1080.       i = lh_SSL_SESSION_get_down_load(s->sessions);
      1081.       lh_SSL_SESSION_set_down_load(s->sessions, 0);
      1082.       lh_SSL_SESSION_doall_TIMEOUT_PARAM(tp.cache, timeout_cb, &tp);
                  ^
      1083.       lh_SSL_SESSION_set_down_load(s->sessions, i);
      1084.       CRYPTO_THREAD_unlock(s->lock);

ssl/ssl_sess.c:1067:1: Parameter `lh->num_nodes`
        1065.   }
        1066.   
        1067. > IMPLEMENT_LHASH_DOALL_ARG(SSL_SESSION, TIMEOUT_PARAM);
        1068.   
        1069.   void SSL_CTX_flush_sessions(SSL_CTX *s, long t)

ssl/ssl_sess.c:1067:1: Call
        1065.   }
        1066.   
        1067. > IMPLEMENT_LHASH_DOALL_ARG(SSL_SESSION, TIMEOUT_PARAM);
        1068.   
        1069.   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) {
