test/ssltestlib.c:137: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned64 by call to `SSL_free`.
Showing all 18 steps of the trace


test/ssltestlib.c:62:17: Call
60.       BIO *s_to_c_bio = NULL, *c_to_s_bio = NULL;
61.   
62.       serverssl = SSL_new(serverctx);
                      ^
63.       clientssl = SSL_new(clientctx);
64.   

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

test/ssltestlib.c:63:17: Call
61.   
62.       serverssl = SSL_new(serverctx);
63.       clientssl = SSL_new(clientctx);
                      ^
64.   
65.       if (serverssl == NULL || clientssl == NULL) {

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

test/ssltestlib.c:137:5: Call
135.   
136.    error:
137.       SSL_free(serverssl);
           ^
138.       SSL_free(clientssl);
139.       BIO_free(s_to_c_bio);

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

ssl/ssl_lib.c:1000:9: Call
  998.       /* Make the next call work :-) */
  999.       if (s->session != NULL) {
  1000.           ssl_clear_bad_session(s);
                  ^
  1001.           SSL_SESSION_free(s->session);
  1002.       }

ssl/ssl_sess.c:986:1: Parameter `s->initial_ctx->sessions->num_items`
    984.   }
    985.   
    986. > int ssl_clear_bad_session(SSL *s)
    987.   {
    988.       if ((s->session != NULL) &&

ssl/ssl_sess.c:991:9: Call
    989.           !(s->shutdown & SSL_SENT_SHUTDOWN) &&
    990.           !(SSL_in_init(s) || SSL_in_before(s))) {
    991.           SSL_CTX_remove_session(s->session_ctx, s->session);
                   ^
    992.           return (1);
    993.       } else

ssl/ssl_sess.c:693:1: Parameter `ctx->sessions->num_items`
      691.   }
      692.   
      693. > int SSL_CTX_remove_session(SSL_CTX *ctx, SSL_SESSION *c)
      694.   {
      695.       return remove_session_lock(ctx, c, 1);

ssl/ssl_sess.c:695:12: Call
      693.   int SSL_CTX_remove_session(SSL_CTX *ctx, SSL_SESSION *c)
      694.   {
      695.       return remove_session_lock(ctx, c, 1);
                        ^
      696.   }
      697.   

ssl/ssl_sess.c:698:1: Parameter `ctx->sessions->num_items`
        696.   }
        697.   
        698. > static int remove_session_lock(SSL_CTX *ctx, SSL_SESSION *c, int lck)
        699.   {
        700.       SSL_SESSION *r;

ssl/ssl_sess.c:708:17: Call
        706.           if ((r = lh_SSL_SESSION_retrieve(ctx->sessions, c)) == c) {
        707.               ret = 1;
        708.               r = lh_SSL_SESSION_delete(ctx->sessions, c);
                               ^
        709.               SSL_SESSION_list_remove(ctx, c);
        710.           }

ssl/ssl_locl.h:581:1: Parameter `lh->num_items`
          579.   };
          580.   
          581. > DEFINE_LHASH_OF(SSL_SESSION);
          582.   /* Needed in ssl_cert.c */
          583.   DEFINE_LHASH_OF(X509_NAME);

ssl/ssl_locl.h:581:1: Call
          579.   };
          580.   
          581. > DEFINE_LHASH_OF(SSL_SESSION);
          582.   /* Needed in ssl_cert.c */
          583.   DEFINE_LHASH_OF(X509_NAME);

crypto/lhash/lhash.c:103:1: <LHS trace>
101.   }
102.   
103. > void *OPENSSL_LH_delete(OPENSSL_LHASH *lh, const void *data)
104.   {
105.       unsigned long hash;

crypto/lhash/lhash.c:103:1: Parameter `lh->num_items`
            101.   }
            102.   
            103. > void *OPENSSL_LH_delete(OPENSSL_LHASH *lh, const void *data)
            104.   {
            105.       unsigned long hash;

crypto/lhash/lhash.c:123:5: Binary operation: ([0, +oo] - 1):unsigned64 by call to `SSL_free` 
            121.       }
            122.   
            123.       lh->num_items--;
                       ^
            124.       if ((lh->num_nodes > MIN_NODES) &&
            125.           (lh->down_load >= (lh->num_items * LH_LOAD_MULT / lh->num_nodes)))
