ssl/statem/extensions_srvr.c:1139: error: INTEGER_OVERFLOW_L2
  ([0, max(0, `s->session_ctx->sessions->num_items`)] - 1):unsigned64 by call to `SSL_CTX_remove_session`.
Showing all 11 steps of the trace


ssl/statem/extensions_srvr.c:1006:1: Parameter `s->session_ctx->sessions->num_items`
1004.   }
1005.   
1006. > int tls_parse_ctos_psk(SSL *s, PACKET *pkt, unsigned int context, X509 *x,
1007.                          size_t chainidx)
1008.   {

ssl/statem/extensions_srvr.c:1139:25: Call
1137.               /* Check for replay */
1138.               if (s->max_early_data > 0
1139.                       && !SSL_CTX_remove_session(s->session_ctx, sess)) {
                                ^
1140.                   SSL_SESSION_free(sess);
1141.                   sess = NULL;

ssl/ssl_sess.c:751:1: Parameter `ctx->sessions->num_items`
  749.   }
  750.   
  751. > int SSL_CTX_remove_session(SSL_CTX *ctx, SSL_SESSION *c)
  752.   {
  753.       return remove_session_lock(ctx, c, 1);

ssl/ssl_sess.c:753:12: Call
  751.   int SSL_CTX_remove_session(SSL_CTX *ctx, SSL_SESSION *c)
  752.   {
  753.       return remove_session_lock(ctx, c, 1);
                    ^
  754.   }
  755.   

ssl/ssl_sess.c:756:1: Parameter `ctx->sessions->num_items`
    754.   }
    755.   
    756. > static int remove_session_lock(SSL_CTX *ctx, SSL_SESSION *c, int lck)
    757.   {
    758.       SSL_SESSION *r;

ssl/ssl_sess.c:766:17: Call
    764.           if ((r = lh_SSL_SESSION_retrieve(ctx->sessions, c)) != NULL) {
    765.               ret = 1;
    766.               r = lh_SSL_SESSION_delete(ctx->sessions, r);
                           ^
    767.               SSL_SESSION_list_remove(ctx, r);
    768.           }

ssl/ssl_locl.h:732:1: Parameter `lh->num_items`
      730.   } TLSEXT_INDEX;
      731.   
      732. > DEFINE_LHASH_OF(SSL_SESSION);
      733.   /* Needed in ssl_cert.c */
      734.   DEFINE_LHASH_OF(X509_NAME);

ssl/ssl_locl.h:732:1: Call
      730.   } TLSEXT_INDEX;
      731.   
      732. > DEFINE_LHASH_OF(SSL_SESSION);
      733.   /* Needed in ssl_cert.c */
      734.   DEFINE_LHASH_OF(X509_NAME);

crypto/lhash/lhash.c:119:1: <LHS trace>
117.   }
118.   
119. > void *OPENSSL_LH_delete(OPENSSL_LHASH *lh, const void *data)
120.   {
121.       unsigned long hash;

crypto/lhash/lhash.c:119:1: Parameter `lh->num_items`
        117.   }
        118.   
        119. > void *OPENSSL_LH_delete(OPENSSL_LHASH *lh, const void *data)
        120.   {
        121.       unsigned long hash;

crypto/lhash/lhash.c:139:5: Binary operation: ([0, max(0, s->session_ctx->sessions->num_items)] - 1):unsigned64 by call to `SSL_CTX_remove_session` 
        137.       }
        138.   
        139.       lh->num_items--;
                   ^
        140.       if ((lh->num_nodes > MIN_NODES) &&
        141.           (lh->down_load >= (lh->num_items * LH_LOAD_MULT / lh->num_nodes)))
