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


ssl/ssl_sess.c:447:1: Parameter `s->initial_ctx->sessions->num_items`
445.    *     if the server should issue a new session ticket (to 0 otherwise).
446.    */
447. > int ssl_get_prev_session(SSL *s, CLIENTHELLO_MSG *hello)
448.   {
449.       /* This is used only by servers. */

ssl/ssl_sess.c:586:13: Call
584.           if (try_session_cache) {
585.               /* session was from the cache, so remove it */
586.               SSL_CTX_remove_session(s->session_ctx, ret);
                   ^
587.           }
588.           goto err;

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

ssl/ssl_sess.c:700:12: Call
  698.   int SSL_CTX_remove_session(SSL_CTX *ctx, SSL_SESSION *c)
  699.   {
  700.       return remove_session_lock(ctx, c, 1);
                    ^
  701.   }
  702.   

ssl/ssl_sess.c:703:1: Parameter `ctx->sessions->num_items`
    701.   }
    702.   
    703. > static int remove_session_lock(SSL_CTX *ctx, SSL_SESSION *c, int lck)
    704.   {
    705.       SSL_SESSION *r;

ssl/ssl_sess.c:713:17: Call
    711.           if ((r = lh_SSL_SESSION_retrieve(ctx->sessions, c)) == c) {
    712.               ret = 1;
    713.               r = lh_SSL_SESSION_delete(ctx->sessions, c);
                           ^
    714.               SSL_SESSION_list_remove(ctx, c);
    715.           }

ssl/ssl_locl.h:598:1: Parameter `lh->num_items`
      596.   };
      597.   
      598. > DEFINE_LHASH_OF(SSL_SESSION);
      599.   /* Needed in ssl_cert.c */
      600.   DEFINE_LHASH_OF(X509_NAME);

ssl/ssl_locl.h:598:1: Call
      596.   };
      597.   
      598. > DEFINE_LHASH_OF(SSL_SESSION);
      599.   /* Needed in ssl_cert.c */
      600.   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, 1+max(0, s->initial_ctx->sessions->num_items)] - 1):unsigned64 by call to `SSL_CTX_remove_session` 
        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)))
