ssl/ssl_sess.c:765: 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:707:1: Parameter `ctx->sessions->num_items`
705.   }
706.   
707. > int SSL_CTX_add_session(SSL_CTX *ctx, SSL_SESSION *c)
708.   {
709.       int ret = 0;

ssl/ssl_sess.c:723:9: Call
721.   
722.       CRYPTO_w_lock(CRYPTO_LOCK_SSL_CTX);
723.       s = lh_SSL_SESSION_insert(ctx->sessions, c);
               ^
724.   
725.       /*

ssl/ssl_locl.h:681:1: Parameter `lh->num_items`
  679.   };
  680.   
  681. > DEFINE_LHASH_OF(SSL_SESSION);
  682.   /* Needed in ssl_cert.c */
  683.   DEFINE_LHASH_OF(X509_NAME);

ssl/ssl_locl.h:681:1: Call
  679.   };
  680.   
  681. > DEFINE_LHASH_OF(SSL_SESSION);
  682.   /* Needed in ssl_cert.c */
  683.   DEFINE_LHASH_OF(X509_NAME);

crypto/lhash/lhash.c:155:1: Parameter `lh->num_items`
    153.   }
    154.   
    155. > void *lh_insert(_LHASH *lh, void *data)
    156.   {
    157.       unsigned long hash;

ssl/ssl_sess.c:765:22: Call
763.               while (SSL_CTX_sess_number(ctx) >
764.                      SSL_CTX_sess_get_cache_size(ctx)) {
765.                   if (!remove_session_lock(ctx, ctx->session_cache_tail, 0))
                            ^
766.                       break;
767.                   else

ssl/ssl_sess.c:781:1: Parameter `ctx->sessions->num_items`
  779.   }
  780.   
  781. > static int remove_session_lock(SSL_CTX *ctx, SSL_SESSION *c, int lck)
  782.   {
  783.       SSL_SESSION *r;

ssl/ssl_sess.c:791:17: Call
  789.           if ((r = lh_SSL_SESSION_retrieve(ctx->sessions, c)) == c) {
  790.               ret = 1;
  791.               r = lh_SSL_SESSION_delete(ctx->sessions, c);
                         ^
  792.               SSL_SESSION_list_remove(ctx, c);
  793.           }

ssl/ssl_locl.h:681:1: Parameter `lh->num_items`
    679.   };
    680.   
    681. > DEFINE_LHASH_OF(SSL_SESSION);
    682.   /* Needed in ssl_cert.c */
    683.   DEFINE_LHASH_OF(X509_NAME);

ssl/ssl_locl.h:681:1: Call
    679.   };
    680.   
    681. > DEFINE_LHASH_OF(SSL_SESSION);
    682.   /* Needed in ssl_cert.c */
    683.   DEFINE_LHASH_OF(X509_NAME);

crypto/lhash/lhash.c:188:1: <LHS trace>
186.   }
187.   
188. > void *lh_delete(_LHASH *lh, const void *data)
189.   {
190.       unsigned long hash;

crypto/lhash/lhash.c:188:1: Parameter `lh->num_items`
      186.   }
      187.   
      188. > void *lh_delete(_LHASH *lh, const void *data)
      189.   {
      190.       unsigned long hash;

crypto/lhash/lhash.c:208:5: Binary operation: ([0, 1+max(0, ctx->sessions->num_items)] - 1):unsigned64 by call to `remove_session_lock` 
      206.       }
      207.   
      208.       lh->num_items--;
                 ^
      209.       if ((lh->num_nodes > MIN_NODES) &&
      210.           (lh->down_load >= (lh->num_items * LH_LOAD_MULT / lh->num_nodes)))
