ssl/ssl_sess.c:686: 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:629:1: Parameter `ctx->sessions->num_items`
627.   }
628.   
629. > int SSL_CTX_add_session(SSL_CTX *ctx, SSL_SESSION *c)
630.   {
631.       int ret = 0;

ssl/ssl_sess.c:645:9: Call
643.   
644.       CRYPTO_THREAD_write_lock(ctx->lock);
645.       s = lh_SSL_SESSION_insert(ctx->sessions, c);
               ^
646.   
647.       /*

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

ssl/ssl_locl.h:595:1: Call
  593.   };
  594.   
  595. > DEFINE_LHASH_OF(SSL_SESSION);
  596.   /* Needed in ssl_cert.c */
  597.   DEFINE_LHASH_OF(X509_NAME);

crypto/lhash/lhash.c:70:1: Parameter `lh->num_items`
    68.   }
    69.   
    70. > void *OPENSSL_LH_insert(OPENSSL_LHASH *lh, void *data)
    71.   {
    72.       unsigned long hash;

ssl/ssl_sess.c:686:22: Call
684.           if (SSL_CTX_sess_get_cache_size(ctx) > 0) {
685.               while (SSL_CTX_sess_number(ctx) > SSL_CTX_sess_get_cache_size(ctx)) {
686.                   if (!remove_session_lock(ctx, ctx->session_cache_tail, 0))
                            ^
687.                       break;
688.                   else

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

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

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

ssl/ssl_locl.h:595:1: Call
    593.   };
    594.   
    595. > DEFINE_LHASH_OF(SSL_SESSION);
    596.   /* Needed in ssl_cert.c */
    597.   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, ctx->sessions->num_items)] - 1):unsigned64 by call to `remove_session_lock` 
      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)))
