ssl/ssl_sess.c:662: error: INTEGER_OVERFLOW_L2
  ([0, 1+max(0, `ctx->sessions->num_items`)] - 1):unsigned64 by call to `remove_session_lock`.
Showing all 9 steps of the trace


ssl/ssl_sess.c:604:1: Parameter `ctx->sessions->num_items`
602.   }
603.   
604. > int SSL_CTX_add_session(SSL_CTX *ctx, SSL_SESSION *c)
605.   {
606.       int ret = 0;

ssl/ssl_sess.c:620:9: Call
618.   
619.       CRYPTO_w_lock(CRYPTO_LOCK_SSL_CTX);
620.       s = lh_SSL_SESSION_insert(ctx->sessions, c);
               ^
621.   
622.       /*

crypto/lhash/lhash.c:178:1: Parameter `lh->num_items`
  176.   }
  177.   
  178. > void *lh_insert(_LHASH *lh, void *data)
  179.   {
  180.       unsigned long hash;

ssl/ssl_sess.c:662:22: Call
660.               while (SSL_CTX_sess_number(ctx) >
661.                      SSL_CTX_sess_get_cache_size(ctx)) {
662.                   if (!remove_session_lock(ctx, ctx->session_cache_tail, 0))
                            ^
663.                       break;
664.                   else

ssl/ssl_sess.c:678:1: Parameter `ctx->sessions->num_items`
  676.   }
  677.   
  678. > static int remove_session_lock(SSL_CTX *ctx, SSL_SESSION *c, int lck)
  679.   {
  680.       SSL_SESSION *r;

ssl/ssl_sess.c:688:17: Call
  686.           if ((r = lh_SSL_SESSION_retrieve(ctx->sessions, c)) == c) {
  687.               ret = 1;
  688.               r = lh_SSL_SESSION_delete(ctx->sessions, c);
                         ^
  689.               SSL_SESSION_list_remove(ctx, c);
  690.           }

crypto/lhash/lhash.c:213:1: <LHS trace>
211.   }
212.   
213. > void *lh_delete(_LHASH *lh, const void *data)
214.   {
215.       unsigned long hash;

crypto/lhash/lhash.c:213:1: Parameter `lh->num_items`
    211.   }
    212.   
    213. > void *lh_delete(_LHASH *lh, const void *data)
    214.   {
    215.       unsigned long hash;

crypto/lhash/lhash.c:233:5: Binary operation: ([0, 1+max(0, ctx->sessions->num_items)] - 1):unsigned64 by call to `remove_session_lock` 
    231.       }
    232.   
    233.       lh->num_items--;
               ^
    234.       if ((lh->num_nodes > MIN_NODES) &&
    235.           (lh->down_load >= (lh->num_items * LH_LOAD_MULT / lh->num_nodes)))
