ssl/ssl_sess.c:739: 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:673:1: Parameter `ctx->sessions->num_items`
671.   }
672.   
673. > int SSL_CTX_add_session(SSL_CTX *ctx, SSL_SESSION *c)
674.   {
675.       int ret = 0, discard;

ssl/ssl_sess.c:689:9: Call
687.   
688.       CRYPTO_THREAD_write_lock(ctx->lock);
689.       s = lh_SSL_SESSION_insert(ctx->sessions, c);
               ^
690.   
691.       /*

ssl/ssl_locl.h:732:1: Parameter `lh->num_items`
  730.   } TLSEXT_INDEX;
  731.   
  732. > DEFINE_LHASH_OF(SSL_SESSION);
  733.   /* Needed in ssl_cert.c */
  734.   DEFINE_LHASH_OF(X509_NAME);

ssl/ssl_locl.h:732:1: Call
  730.   } TLSEXT_INDEX;
  731.   
  732. > DEFINE_LHASH_OF(SSL_SESSION);
  733.   /* Needed in ssl_cert.c */
  734.   DEFINE_LHASH_OF(X509_NAME);

crypto/lhash/lhash.c:87:1: Parameter `lh->num_items`
    85.   }
    86.   
    87. > void *OPENSSL_LH_insert(OPENSSL_LHASH *lh, void *data)
    88.   {
    89.       unsigned long hash;

ssl/ssl_sess.c:739:22: Call
737.           if (SSL_CTX_sess_get_cache_size(ctx) > 0) {
738.               while (SSL_CTX_sess_number(ctx) > SSL_CTX_sess_get_cache_size(ctx)) {
739.                   if (!remove_session_lock(ctx, ctx->session_cache_tail, 0))
                            ^
740.                       break;
741.                   else

ssl/ssl_sess.c:756:1: Parameter `ctx->sessions->num_items`
  754.   }
  755.   
  756. > static int remove_session_lock(SSL_CTX *ctx, SSL_SESSION *c, int lck)
  757.   {
  758.       SSL_SESSION *r;

ssl/ssl_sess.c:766:17: Call
  764.           if ((r = lh_SSL_SESSION_retrieve(ctx->sessions, c)) != NULL) {
  765.               ret = 1;
  766.               r = lh_SSL_SESSION_delete(ctx->sessions, r);
                         ^
  767.               SSL_SESSION_list_remove(ctx, r);
  768.           }

ssl/ssl_locl.h:732:1: Parameter `lh->num_items`
    730.   } TLSEXT_INDEX;
    731.   
    732. > DEFINE_LHASH_OF(SSL_SESSION);
    733.   /* Needed in ssl_cert.c */
    734.   DEFINE_LHASH_OF(X509_NAME);

ssl/ssl_locl.h:732:1: Call
    730.   } TLSEXT_INDEX;
    731.   
    732. > DEFINE_LHASH_OF(SSL_SESSION);
    733.   /* Needed in ssl_cert.c */
    734.   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, ctx->sessions->num_items)] - 1):unsigned64 by call to `remove_session_lock` 
      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)))
