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


test/sslapitest.c:1210:10: Call
1208.       }
1209.   
1210.       if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl,
                 ^
1211.                                         NULL, NULL)))
1212.           goto end;

test/ssltestlib.c:576:15: Call
  574.       if (*sssl != NULL)
  575.           serverssl = *sssl;
  576.       else if (!TEST_ptr(serverssl = SSL_new(serverctx)))
                       ^
  577.           goto error;
  578.       if (*cssl != NULL)

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

test/sslapitest.c:1283:5: Call
1281.        * a crypto-mdebug build
1282.        */
1283.       SSL_free(serverssl);
            ^
1284.       SSL_free(clientssl);
1285.       SSL_CTX_free(sctx);

ssl/ssl_lib.c:1124:1: Parameter `s->ctx->sessions->num_nodes`
  1122.   }
  1123.   
  1124. > void SSL_free(SSL *s)
  1125.   {
  1126.       int i;

ssl/ssl_lib.c:1196:5: Call
  1194.       RECORD_LAYER_release(&s->rlayer);
  1195.   
  1196.       SSL_CTX_free(s->ctx);
              ^
  1197.   
  1198.       ASYNC_WAIT_CTX_free(s->waitctx);

ssl/ssl_lib.c:3046:1: Parameter `a->sessions->num_nodes`
    3044.   }
    3045.   
    3046. > void SSL_CTX_free(SSL_CTX *a)
    3047.   {
    3048.       int i;

ssl/ssl_lib.c:3072:9: Call
    3070.        */
    3071.       if (a->sessions != NULL)
    3072.           SSL_CTX_flush_sessions(a, 0);
                    ^
    3073.   
    3074.       CRYPTO_free_ex_data(CRYPTO_EX_INDEX_SSL_CTX, a, &a->ex_data);

ssl/ssl_sess.c:1116:1: Parameter `s->sessions->num_nodes`
      1114.   IMPLEMENT_LHASH_DOALL_ARG(SSL_SESSION, TIMEOUT_PARAM);
      1115.   
      1116. > void SSL_CTX_flush_sessions(SSL_CTX *s, long t)
      1117.   {
      1118.       unsigned long i;

ssl/ssl_sess.c:1129:5: Call
      1127.       i = lh_SSL_SESSION_get_down_load(s->sessions);
      1128.       lh_SSL_SESSION_set_down_load(s->sessions, 0);
      1129.       lh_SSL_SESSION_doall_TIMEOUT_PARAM(tp.cache, timeout_cb, &tp);
                  ^
      1130.       lh_SSL_SESSION_set_down_load(s->sessions, i);
      1131.       CRYPTO_THREAD_unlock(s->lock);

ssl/ssl_sess.c:1114:1: Parameter `lh->num_nodes`
        1112.   }
        1113.   
        1114. > IMPLEMENT_LHASH_DOALL_ARG(SSL_SESSION, TIMEOUT_PARAM);
        1115.   
        1116.   void SSL_CTX_flush_sessions(SSL_CTX *s, long t)

ssl/ssl_sess.c:1114:1: Call
        1112.   }
        1113.   
        1114. > IMPLEMENT_LHASH_DOALL_ARG(SSL_SESSION, TIMEOUT_PARAM);
        1115.   
        1116.   void SSL_CTX_flush_sessions(SSL_CTX *s, long t)

crypto/lhash/lhash.c:198:1: Parameter `lh->num_nodes`
          196.   }
          197.   
          198. > void OPENSSL_LH_doall_arg(OPENSSL_LHASH *lh, OPENSSL_LH_DOALL_FUNCARG func, void *arg)
          199.   {
          200.       doall_util_fn(lh, 1, (OPENSSL_LH_DOALL_FUNC)0, func, arg);

crypto/lhash/lhash.c:200:5: Call
          198.   void OPENSSL_LH_doall_arg(OPENSSL_LHASH *lh, OPENSSL_LH_DOALL_FUNCARG func, void *arg)
          199.   {
          200.       doall_util_fn(lh, 1, (OPENSSL_LH_DOALL_FUNC)0, func, arg);
                     ^
          201.   }
          202.   

crypto/lhash/lhash.c:166:1: <LHS trace>
164.   }
165.   
166. > static void doall_util_fn(OPENSSL_LHASH *lh, int use_arg,
167.                             OPENSSL_LH_DOALL_FUNC func,
168.                             OPENSSL_LH_DOALL_FUNCARG func_arg, void *arg)

crypto/lhash/lhash.c:166:1: Parameter `lh->num_nodes`
            164.   }
            165.   
            166. > static void doall_util_fn(OPENSSL_LHASH *lh, int use_arg,
            167.                             OPENSSL_LH_DOALL_FUNC func,
            168.                             OPENSSL_LH_DOALL_FUNCARG func_arg, void *arg)

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