ssl/ssl_sess.c:596: 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:461:1: Parameter `s->initial_ctx->sessions->num_items`
459.    *     if the server should issue a new session ticket (to 0 otherwise).
460.    */
461. > int ssl_get_prev_session(SSL *s, CLIENTHELLO_MSG *hello, int *al)
462.   {
463.       /* This is used only by servers. */

ssl/ssl_sess.c:596:13: Call
594.           if (try_session_cache) {
595.               /* session was from the cache, so remove it */
596.               SSL_CTX_remove_session(s->session_ctx, ret);
                   ^
597.           }
598.           goto err;

ssl/ssl_sess.c:725:1: Parameter `ctx->sessions->num_items`
  723.   }
  724.   
  725. > int SSL_CTX_remove_session(SSL_CTX *ctx, SSL_SESSION *c)
  726.   {
  727.       return remove_session_lock(ctx, c, 1);

ssl/ssl_sess.c:727:12: Call
  725.   int SSL_CTX_remove_session(SSL_CTX *ctx, SSL_SESSION *c)
  726.   {
  727.       return remove_session_lock(ctx, c, 1);
                    ^
  728.   }
  729.   

ssl/ssl_sess.c:730:1: Parameter `ctx->sessions->num_items`
    728.   }
    729.   
    730. > static int remove_session_lock(SSL_CTX *ctx, SSL_SESSION *c, int lck)
    731.   {
    732.       SSL_SESSION *r;

ssl/ssl_sess.c:740:17: Call
    738.           if ((r = lh_SSL_SESSION_retrieve(ctx->sessions, c)) == c) {
    739.               ret = 1;
    740.               r = lh_SSL_SESSION_delete(ctx->sessions, c);
                           ^
    741.               SSL_SESSION_list_remove(ctx, c);
    742.           }

ssl/ssl_locl.h:620:1: Parameter `lh->num_items`
      618.   };
      619.   
      620. > DEFINE_LHASH_OF(SSL_SESSION);
      621.   /* Needed in ssl_cert.c */
      622.   DEFINE_LHASH_OF(X509_NAME);

ssl/ssl_locl.h:620:1: Call
      618.   };
      619.   
      620. > DEFINE_LHASH_OF(SSL_SESSION);
      621.   /* Needed in ssl_cert.c */
      622.   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)))
