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


ssl/ssl_sess.c:716:1: Parameter `ctx->sessions->num_items`
714.   }
715.   
716. > int SSL_CTX_add_session(SSL_CTX *ctx, SSL_SESSION *c)
717.   {
718.       int ret = 0;

ssl/ssl_sess.c:732:9: Call
730.   
731.       CRYPTO_w_lock(CRYPTO_LOCK_SSL_CTX);
732.       s = lh_SSL_SESSION_insert(ctx->sessions, c);
               ^
733.   
734.       /*

ssl/ssl_locl.h:697:1: Parameter `lh->num_items`
  695.   
  696.   DEFINE_STACK_OF(SSL_COMP)
  697. > DEFINE_LHASH_OF(SSL_SESSION);
  698.   
  699.   

ssl/ssl_locl.h:697:1: Call
  695.   
  696.   DEFINE_STACK_OF(SSL_COMP)
  697. > DEFINE_LHASH_OF(SSL_SESSION);
  698.   
  699.   

crypto/lhash/lhash.c:156:1: Parameter `lh->num_items`
    154.   }
    155.   
    156. > void *lh_insert(_LHASH *lh, void *data)
    157.   {
    158.       unsigned long hash;

ssl/ssl_sess.c:774:22: Call
772.               while (SSL_CTX_sess_number(ctx) >
773.                      SSL_CTX_sess_get_cache_size(ctx)) {
774.                   if (!remove_session_lock(ctx, ctx->session_cache_tail, 0))
                            ^
775.                       break;
776.                   else

ssl/ssl_sess.c:790:1: Parameter `ctx->sessions->num_items`
  788.   }
  789.   
  790. > static int remove_session_lock(SSL_CTX *ctx, SSL_SESSION *c, int lck)
  791.   {
  792.       SSL_SESSION *r;

ssl/ssl_sess.c:800:17: Call
  798.           if ((r = lh_SSL_SESSION_retrieve(ctx->sessions, c)) == c) {
  799.               ret = 1;
  800.               r = lh_SSL_SESSION_delete(ctx->sessions, c);
                         ^
  801.               SSL_SESSION_list_remove(ctx, c);
  802.           }

ssl/ssl_locl.h:697:1: Parameter `lh->num_items`
    695.   
    696.   DEFINE_STACK_OF(SSL_COMP)
    697. > DEFINE_LHASH_OF(SSL_SESSION);
    698.   
    699.   

ssl/ssl_locl.h:697:1: Call
    695.   
    696.   DEFINE_STACK_OF(SSL_COMP)
    697. > DEFINE_LHASH_OF(SSL_SESSION);
    698.   
    699.   

crypto/lhash/lhash.c:189:1: <LHS trace>
187.   }
188.   
189. > void *lh_delete(_LHASH *lh, const void *data)
190.   {
191.       unsigned long hash;

crypto/lhash/lhash.c:189:1: Parameter `lh->num_items`
      187.   }
      188.   
      189. > void *lh_delete(_LHASH *lh, const void *data)
      190.   {
      191.       unsigned long hash;

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