ssl/statem/statem.c:377: error: INTEGER_OVERFLOW_L2
  ([0, max(0, `s->session_ctx->sessions->num_items`)] - 1):unsigned64 by call to `tls_setup_handshake`.
Showing all 15 steps of the trace


ssl/statem/statem.c:277:1: Parameter `s->session_ctx->sessions->num_items`
275.    * <=0: NBIO or error
276.    */
277. > static int state_machine(SSL *s, int server)
278.   {
279.       BUF_MEM *buf = NULL;

ssl/statem/statem.c:377:18: Call
375.           if ((SSL_in_before(s))
376.                   || s->renegotiate) {
377.               if (!tls_setup_handshake(s)) {
                        ^
378.                   ossl_statem_set_error(s);
379.                   goto end;

ssl/statem/statem_lib.c:75:1: Parameter `s->session_ctx->sessions->num_items`
  73.   }
  74.   
  75. > int tls_setup_handshake(SSL *s)
  76.   {
  77.       if (!ssl3_init_finished_mac(s))

ssl/statem/statem_lib.c:91:13: Call
  89.           if (ssl_get_min_max_version(s, &ver_min, &ver_max) != 0) {
  90.               SSLerr(SSL_F_TLS_SETUP_HANDSHAKE, ERR_R_INTERNAL_ERROR);
  91.               ssl3_send_alert(s, SSL3_AL_FATAL, SSL_AD_INTERNAL_ERROR);
                    ^
  92.               return 0;
  93.           }

ssl/s3_msg.c:63:1: Parameter `s->session_ctx->sessions->num_items`
    61.   }
    62.   
    63. > int ssl3_send_alert(SSL *s, int level, int desc)
    64.   {
    65.       /* Map tls/ssl alert value to correct one */

ssl/s3_msg.c:77:9: Call
    75.       /* If a fatal one, remove from cache */
    76.       if ((level == SSL3_AL_FATAL) && (s->session != NULL))
    77.           SSL_CTX_remove_session(s->session_ctx, s->session);
                  ^
    78.   
    79.       s->s3->alert_dispatch = 1;

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:689:1: Parameter `lh->num_items`
          687.   } CLIENTHELLO_MSG;
          688.   
          689. > DEFINE_LHASH_OF(SSL_SESSION);
          690.   /* Needed in ssl_cert.c */
          691.   DEFINE_LHASH_OF(X509_NAME);

ssl/ssl_locl.h:689:1: Call
          687.   } CLIENTHELLO_MSG;
          688.   
          689. > DEFINE_LHASH_OF(SSL_SESSION);
          690.   /* Needed in ssl_cert.c */
          691.   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, max(0, s->session_ctx->sessions->num_items)] - 1):unsigned64 by call to `tls_setup_handshake` 
            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)))
