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


test/sslapitest.c:1238:11: Call
1236.       }
1237.   
1238.       ssl = SSL_new(ctx);
                  ^
1239.       if (ssl == NULL) {
1240.           printf("Failed to allocate SSL object\n");

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

test/sslapitest.c:1283:5: Call
1281.       BIO_free(membio1);
1282.       BIO_free(sslbio);
1283.       SSL_free(ssl);
            ^
1284.       SSL_CTX_free(ctx);
1285.   

ssl/ssl_lib.c:958:1: Parameter `s->session_ctx->sessions->num_items`
  956.   }
  957.   
  958. > void SSL_free(SSL *s)
  959.   {
  960.       int i;

ssl/ssl_lib.c:988:9: Call
  986.       /* Make the next call work :-) */
  987.       if (s->session != NULL) {
  988.           ssl_clear_bad_session(s);
                 ^
  989.           SSL_SESSION_free(s->session);
  990.       }

ssl/ssl_sess.c:1031:1: Parameter `s->session_ctx->sessions->num_items`
    1029.   }
    1030.   
    1031. > int ssl_clear_bad_session(SSL *s)
    1032.   {
    1033.       if ((s->session != NULL) &&

ssl/ssl_sess.c:1036:9: Call
    1034.           !(s->shutdown & SSL_SENT_SHUTDOWN) &&
    1035.           !(SSL_in_init(s) || SSL_in_before(s))) {
    1036.           SSL_CTX_remove_session(s->session_ctx, s->session);
                    ^
    1037.           return (1);
    1038.       } else

ssl/ssl_sess.c:725:1: Parameter `ctx->sessions->num_items`
      723.   }
      724.   
      725. > int SSL_CTX_remove_session(SSL_CTX *ctx, SSL_SESSION *c)
      726.   {
      727.       return remove_session_lock(ctx, c, 1);

ssl/ssl_sess.c:727:12: Call
      725.   int SSL_CTX_remove_session(SSL_CTX *ctx, SSL_SESSION *c)
      726.   {
      727.       return remove_session_lock(ctx, c, 1);
                        ^
      728.   }
      729.   

ssl/ssl_sess.c:730:1: Parameter `ctx->sessions->num_items`
        728.   }
        729.   
        730. > static int remove_session_lock(SSL_CTX *ctx, SSL_SESSION *c, int lck)
        731.   {
        732.       SSL_SESSION *r;

ssl/ssl_sess.c:740:17: Call
        738.           if ((r = lh_SSL_SESSION_retrieve(ctx->sessions, c)) == c) {
        739.               ret = 1;
        740.               r = lh_SSL_SESSION_delete(ctx->sessions, c);
                               ^
        741.               SSL_SESSION_list_remove(ctx, c);
        742.           }

ssl/ssl_locl.h:626:1: Parameter `lh->num_items`
          624.   };
          625.   
          626. > DEFINE_LHASH_OF(SSL_SESSION);
          627.   /* Needed in ssl_cert.c */
          628.   DEFINE_LHASH_OF(X509_NAME);

ssl/ssl_locl.h:626:1: Call
          624.   };
          625.   
          626. > DEFINE_LHASH_OF(SSL_SESSION);
          627.   /* Needed in ssl_cert.c */
          628.   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)))
