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


test/sslapitest.c:1332:10: Call
1330.           goto end;
1331.   
1332.       if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl,
                 ^
1333.                                             &clientssl, NULL, NULL)))
1334.           goto end;

test/ssltestlib.c:635:15: Call
  633.       if (*sssl != NULL)
  634.           serverssl = *sssl;
  635.       else if (!TEST_ptr(serverssl = SSL_new(serverctx)))
                       ^
  636.           goto error;
  637.       if (*cssl != NULL)

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

test/sslapitest.c:1344:5: Call
1342.       SSL_shutdown(clientssl);
1343.       SSL_shutdown(serverssl);
1344.       SSL_free(serverssl);
            ^
1345.       SSL_free(clientssl);
1346.       SSL_CTX_free(sctx);

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

test/sslapitest.c:1369:5: Call
1367.       new_called = 0;
1368.       do_cache = 1;
1369.       SSL_CTX_free(sctx);
            ^
1370.       SSL_CTX_free(cctx);
1371.       sctx = cctx = NULL;

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:1121:1: Parameter `s->sessions->num_nodes`
    1119.   IMPLEMENT_LHASH_DOALL_ARG(SSL_SESSION, TIMEOUT_PARAM);
    1120.   
    1121. > void SSL_CTX_flush_sessions(SSL_CTX *s, long t)
    1122.   {
    1123.       unsigned long i;

ssl/ssl_sess.c:1134:5: Call
    1132.       i = lh_SSL_SESSION_get_down_load(s->sessions);
    1133.       lh_SSL_SESSION_set_down_load(s->sessions, 0);
    1134.       lh_SSL_SESSION_doall_TIMEOUT_PARAM(tp.cache, timeout_cb, &tp);
                ^
    1135.       lh_SSL_SESSION_set_down_load(s->sessions, i);
    1136.       CRYPTO_THREAD_unlock(s->lock);

ssl/ssl_sess.c:1119:1: Parameter `lh->num_nodes`
      1117.   }
      1118.   
      1119. > IMPLEMENT_LHASH_DOALL_ARG(SSL_SESSION, TIMEOUT_PARAM);
      1120.   
      1121.   void SSL_CTX_flush_sessions(SSL_CTX *s, long t)

ssl/ssl_sess.c:1119:1: Call
      1117.   }
      1118.   
      1119. > IMPLEMENT_LHASH_DOALL_ARG(SSL_SESSION, TIMEOUT_PARAM);
      1120.   
      1121.   void SSL_CTX_flush_sessions(SSL_CTX *s, long t)

crypto/lhash/lhash.c:205:1: Parameter `lh->num_nodes`
        203.   }
        204.   
        205. > void OPENSSL_LH_doall_arg(OPENSSL_LHASH *lh, OPENSSL_LH_DOALL_FUNCARG func, void *arg)
        206.   {
        207.       doall_util_fn(lh, 1, (OPENSSL_LH_DOALL_FUNC)0, func, arg);

crypto/lhash/lhash.c:207:5: Call
        205.   void OPENSSL_LH_doall_arg(OPENSSL_LHASH *lh, OPENSSL_LH_DOALL_FUNCARG func, void *arg)
        206.   {
        207.       doall_util_fn(lh, 1, (OPENSSL_LH_DOALL_FUNC)0, func, arg);
                   ^
        208.   }
        209.   

crypto/lhash/lhash.c:173:1: <LHS trace>
171.   }
172.   
173. > static void doall_util_fn(OPENSSL_LHASH *lh, int use_arg,
174.                             OPENSSL_LH_DOALL_FUNC func,
175.                             OPENSSL_LH_DOALL_FUNCARG func_arg, void *arg)

crypto/lhash/lhash.c:173:1: Parameter `lh->num_nodes`
          171.   }
          172.   
          173. > static void doall_util_fn(OPENSSL_LHASH *lh, int use_arg,
          174.                             OPENSSL_LH_DOALL_FUNC func,
          175.                             OPENSSL_LH_DOALL_FUNCARG func_arg, void *arg)

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