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


test/dtlstest.c:63:10: Call
61.   
62.       /* BIO is freed by create_ssl_connection on error */
63.       if (!create_ssl_objects(sctx, cctx, &serverssl1, &clientssl1, NULL,
               ^
64.                                  c_to_s_fbio)) {
65.           printf("Unable to create SSL objects\n");

test/ssltestlib.c:577:21: Call
  575.   
  576.       if (*sssl == NULL)
  577.           serverssl = SSL_new(serverctx);
                             ^
  578.       else
  579.           serverssl = *sssl;

ssl/ssl_lib.c:520:1: Parameter `ctx->sessions->num_nodes`
    518.   }
    519.   
    520. > SSL *SSL_new(SSL_CTX *ctx)
    521.   {
    522.       SSL *s;

test/dtlstest.c:87:5: Call
85.       testresult = 1;
86.    end:
87.       SSL_free(serverssl1);
          ^
88.       SSL_free(clientssl1);
89.       SSL_CTX_free(sctx);

ssl/ssl_lib.c:962:1: Parameter `s->ctx->sessions->num_nodes`
  960.   }
  961.   
  962. > void SSL_free(SSL *s)
  963.   {
  964.       int i;

ssl/ssl_lib.c:1027:5: Call
  1025.       RECORD_LAYER_release(&s->rlayer);
  1026.   
  1027.       SSL_CTX_free(s->ctx);
              ^
  1028.   
  1029.       ASYNC_WAIT_CTX_free(s->waitctx);

ssl/ssl_lib.c:2496:1: Parameter `a->sessions->num_nodes`
    2494.   }
    2495.   
    2496. > void SSL_CTX_free(SSL_CTX *a)
    2497.   {
    2498.       int i;

ssl/ssl_lib.c:2522:9: Call
    2520.        */
    2521.       if (a->sessions != NULL)
    2522.           SSL_CTX_flush_sessions(a, 0);
                    ^
    2523.   
    2524.       CRYPTO_free_ex_data(CRYPTO_EX_INDEX_SSL_CTX, a, &a->ex_data);

ssl/ssl_sess.c:990:1: Parameter `s->sessions->num_nodes`
      988.   IMPLEMENT_LHASH_DOALL_ARG(SSL_SESSION, TIMEOUT_PARAM);
      989.   
      990. > void SSL_CTX_flush_sessions(SSL_CTX *s, long t)
      991.   {
      992.       unsigned long i;

ssl/ssl_sess.c:1003:5: Call
      1001.       i = lh_SSL_SESSION_get_down_load(s->sessions);
      1002.       lh_SSL_SESSION_set_down_load(s->sessions, 0);
      1003.       lh_SSL_SESSION_doall_TIMEOUT_PARAM(tp.cache, timeout_cb, &tp);
                  ^
      1004.       lh_SSL_SESSION_set_down_load(s->sessions, i);
      1005.       CRYPTO_THREAD_unlock(s->lock);

ssl/ssl_sess.c:988:1: Parameter `lh->num_nodes`
        986.   }
        987.   
        988. > IMPLEMENT_LHASH_DOALL_ARG(SSL_SESSION, TIMEOUT_PARAM);
        989.   
        990.   void SSL_CTX_flush_sessions(SSL_CTX *s, long t)

ssl/ssl_sess.c:988:1: Call
        986.   }
        987.   
        988. > IMPLEMENT_LHASH_DOALL_ARG(SSL_SESSION, TIMEOUT_PARAM);
        989.   
        990.   void SSL_CTX_flush_sessions(SSL_CTX *s, long t)

crypto/lhash/lhash.c:182:1: Parameter `lh->num_nodes`
          180.   }
          181.   
          182. > void OPENSSL_LH_doall_arg(OPENSSL_LHASH *lh, OPENSSL_LH_DOALL_FUNCARG func, void *arg)
          183.   {
          184.       doall_util_fn(lh, 1, (OPENSSL_LH_DOALL_FUNC)0, func, arg);

crypto/lhash/lhash.c:184:5: Call
          182.   void OPENSSL_LH_doall_arg(OPENSSL_LHASH *lh, OPENSSL_LH_DOALL_FUNCARG func, void *arg)
          183.   {
          184.       doall_util_fn(lh, 1, (OPENSSL_LH_DOALL_FUNC)0, func, arg);
                     ^
          185.   }
          186.   

crypto/lhash/lhash.c:150:1: <LHS trace>
148.   }
149.   
150. > static void doall_util_fn(OPENSSL_LHASH *lh, int use_arg,
151.                             OPENSSL_LH_DOALL_FUNC func,
152.                             OPENSSL_LH_DOALL_FUNCARG func_arg, void *arg)

crypto/lhash/lhash.c:150:1: Parameter `lh->num_nodes`
            148.   }
            149.   
            150. > static void doall_util_fn(OPENSSL_LHASH *lh, int use_arg,
            151.                             OPENSSL_LH_DOALL_FUNC func,
            152.                             OPENSSL_LH_DOALL_FUNCARG func_arg, void *arg)

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