ssl/ssl_sess.c:608: error: INTEGER_OVERFLOW_L2
  ([0, 1+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/ssl_sess.c:467:1: Parameter `s->session_ctx->sessions->num_items`
465.    *     if the server should issue a new session ticket (to 0 otherwise).
466.    */
467. > int ssl_get_prev_session(SSL *s, CLIENTHELLO_MSG *hello)
468.   {
469.       /* This is used only by servers. */

ssl/ssl_sess.c:608:13: Call
606.           if (try_session_cache) {
607.               /* session was from the cache, so remove it */
608.               SSL_CTX_remove_session(s->session_ctx, ret);
                   ^
609.           }
610.           goto err;

ssl/ssl_sess.c:737:1: Parameter `ctx->sessions->num_items`
  735.   }
  736.   
  737. > int SSL_CTX_remove_session(SSL_CTX *ctx, SSL_SESSION *c)
  738.   {
  739.       return remove_session_lock(ctx, c, 1);

ssl/ssl_sess.c:739:12: Call
  737.   int SSL_CTX_remove_session(SSL_CTX *ctx, SSL_SESSION *c)
  738.   {
  739.       return remove_session_lock(ctx, c, 1);
                    ^
  740.   }
  741.   

ssl/ssl_sess.c:742:1: Parameter `ctx->sessions->num_items`
    740.   }
    741.   
    742. > static int remove_session_lock(SSL_CTX *ctx, SSL_SESSION *c, int lck)
    743.   {
    744.       SSL_SESSION *r;

ssl/ssl_sess.c:752:17: Call
    750.           if ((r = lh_SSL_SESSION_retrieve(ctx->sessions, c)) == c) {
    751.               ret = 1;
    752.               r = lh_SSL_SESSION_delete(ctx->sessions, c);
                           ^
    753.               SSL_SESSION_list_remove(ctx, c);
    754.           }

ssl/ssl_locl.h:713:1: Parameter `lh->num_items`
      711.   } TLSEXT_INDEX;
      712.   
      713. > DEFINE_LHASH_OF(SSL_SESSION);
      714.   /* Needed in ssl_cert.c */
      715.   DEFINE_LHASH_OF(X509_NAME);

ssl/ssl_locl.h:713:1: Call
      711.   } TLSEXT_INDEX;
      712.   
      713. > DEFINE_LHASH_OF(SSL_SESSION);
      714.   /* Needed in ssl_cert.c */
      715.   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, 1+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)))
