ssl/statem/statem.c:409: 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:294:1: Parameter `s->session_ctx->sessions->num_items`
292.    * <=0: NBIO or error
293.    */
294. > static int state_machine(SSL *s, int server)
295.   {
296.       BUF_MEM *buf = NULL;

ssl/statem/statem.c:409:18: Call
407.           if ((SSL_in_before(s))
408.                   || s->renegotiate) {
409.               if (!tls_setup_handshake(s)) {
                        ^
410.                   /* SSLfatal() already called */
411.                   goto end;

ssl/statem/statem_lib.c:71:1: Parameter `s->session_ctx->sessions->num_items`
  69.   }
  70.   
  71. > int tls_setup_handshake(SSL *s)
  72.   {
  73.       if (!ssl3_init_finished_mac(s)) {

ssl/statem/statem_lib.c:121:13: Call
  119.           } else if ((s->options & SSL_OP_NO_RENEGOTIATION)) {
  120.               /* Renegotiation is disabled */
  121.               ssl3_send_alert(s, SSL3_AL_WARNING, SSL_AD_NO_RENEGOTIATION);
                     ^
  122.               return 0;
  123.           } else if (!s->s3->send_connection_binding &&

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

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

ssl/ssl_sess.c:737:1: Parameter `ctx->sessions->num_items`
      735.   }
      736.   
      737. > int SSL_CTX_remove_session(SSL_CTX *ctx, SSL_SESSION *c)
      738.   {
      739.       return remove_session_lock(ctx, c, 1);

ssl/ssl_sess.c:739:12: Call
      737.   int SSL_CTX_remove_session(SSL_CTX *ctx, SSL_SESSION *c)
      738.   {
      739.       return remove_session_lock(ctx, c, 1);
                        ^
      740.   }
      741.   

ssl/ssl_sess.c:742:1: Parameter `ctx->sessions->num_items`
        740.   }
        741.   
        742. > static int remove_session_lock(SSL_CTX *ctx, SSL_SESSION *c, int lck)
        743.   {
        744.       SSL_SESSION *r;

ssl/ssl_sess.c:752:17: Call
        750.           if ((r = lh_SSL_SESSION_retrieve(ctx->sessions, c)) == c) {
        751.               ret = 1;
        752.               r = lh_SSL_SESSION_delete(ctx->sessions, c);
                               ^
        753.               SSL_SESSION_list_remove(ctx, c);
        754.           }

ssl/ssl_locl.h:713:1: Parameter `lh->num_items`
          711.   } TLSEXT_INDEX;
          712.   
          713. > DEFINE_LHASH_OF(SSL_SESSION);
          714.   /* Needed in ssl_cert.c */
          715.   DEFINE_LHASH_OF(X509_NAME);

ssl/ssl_locl.h:713:1: Call
          711.   } TLSEXT_INDEX;
          712.   
          713. > DEFINE_LHASH_OF(SSL_SESSION);
          714.   /* Needed in ssl_cert.c */
          715.   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, max(0, s->session_ctx->sessions->num_items)] - 1):unsigned64 by call to `tls_setup_handshake` 
            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)))
