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


ssl/statem/statem.c:218:1: Parameter `s->initial_ctx->sessions->num_items`
216.    * <=0: NBIO or error
217.    */
218. > static int state_machine(SSL *s, int server)
219.   {
220.       BUF_MEM *buf = NULL;

ssl/statem/statem.c:317:18: Call
315.   
316.           if (SSL_IS_FIRST_HANDSHAKE(s) || s->renegotiate) {
317.               if (!tls_setup_handshake(s)) {
                        ^
318.                   ossl_statem_set_error(s);
319.                   goto end;

ssl/statem/statem_lib.c:75:1: Parameter `s->initial_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:92:13: Call
  90.               SSLerr(SSL_F_TLS_SETUP_HANDSHAKE,
  91.                      SSL_R_UNSAFE_LEGACY_RENEGOTIATION_DISABLED);
  92.               ssl3_send_alert(s, SSL3_AL_FATAL, SSL_AD_HANDSHAKE_FAILURE);
                    ^
  93.               return 0;
  94.           } else {

ssl/s3_msg.c:63:1: Parameter `s->initial_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:74:9: Call
    72.       /* If a fatal one, remove from cache */
    73.       if ((level == SSL3_AL_FATAL) && (s->session != NULL))
    74.           SSL_CTX_remove_session(s->session_ctx, s->session);
                  ^
    75.   
    76.       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: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, max(0, s->initial_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)))
