ssl/ssl_lib.c:3715: error: INTEGER_OVERFLOW_L2
  ([0, max(0, `s->ctx->sessions->num_items`)] - 1):unsigned64 by call to `SSL_copy_session_id`.
Showing all 19 steps of the trace


ssl/ssl_lib.c:3693:1: Parameter `s->ctx->sessions->num_items`
3691.   }
3692.   
3693. > SSL *SSL_dup(SSL *s)
3694.   {
3695.       SSL *ret;

ssl/ssl_lib.c:3707:16: Call
3705.        * Otherwise, copy configuration state, and session if set.
3706.        */
3707.       if ((ret = SSL_new(SSL_get_SSL_CTX(s))) == NULL)
                       ^
3708.           return NULL;
3709.   

ssl/ssl_lib.c:671:1: Parameter `ctx->sessions->num_items`
  669.   }
  670.   
  671. > SSL *SSL_new(SSL_CTX *ctx)
  672.   {
  673.       SSL *s;

ssl/ssl_lib.c:3715:14: Call
3713.            * session-id, SSL_METHOD, sid_ctx, and 'cert'
3714.            */
3715.           if (!SSL_copy_session_id(ret, s))
                     ^
3716.               goto err;
3717.       } else {

ssl/ssl_lib.c:1544:1: Parameter `t->session_ctx->sessions->num_items`
  1542.    * modify.  We need to be able to read f without being hassled
  1543.    */
  1544. > int SSL_copy_session_id(SSL *t, const SSL *f)
  1545.   {
  1546.       int i;

ssl/ssl_lib.c:1548:10: Call
  1546.       int i;
  1547.       /* Do we need to to SSL locking? */
  1548.       if (!SSL_set_session(t, SSL_get_session(f))) {
                   ^
  1549.           return 0;
  1550.       }

ssl/ssl_sess.c:829:1: Parameter `s->session_ctx->sessions->num_items`
    827.   }
    828.   
    829. > int SSL_set_session(SSL *s, SSL_SESSION *session)
    830.   {
    831.       ssl_clear_bad_session(s);

ssl/ssl_sess.c:831:5: Call
    829.   int SSL_set_session(SSL *s, SSL_SESSION *session)
    830.   {
    831.       ssl_clear_bad_session(s);
               ^
    832.       if (s->ctx->method != s->method) {
    833.           if (!SSL_set_ssl_method(s, s->ctx->method))

ssl/ssl_sess.c:1124:1: Parameter `s->session_ctx->sessions->num_items`
      1122.   }
      1123.   
      1124. > int ssl_clear_bad_session(SSL *s)
      1125.   {
      1126.       if ((s->session != NULL) &&

ssl/ssl_sess.c:1129:9: Call
      1127.           !(s->shutdown & SSL_SENT_SHUTDOWN) &&
      1128.           !(SSL_in_init(s) || SSL_in_before(s))) {
      1129.           SSL_CTX_remove_session(s->session_ctx, s->session);
                      ^
      1130.           return 1;
      1131.       } else

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

ssl/ssl_sess.c:744:12: Call
        742.   int SSL_CTX_remove_session(SSL_CTX *ctx, SSL_SESSION *c)
        743.   {
        744.       return remove_session_lock(ctx, c, 1);
                          ^
        745.   }
        746.   

ssl/ssl_sess.c:747:1: Parameter `ctx->sessions->num_items`
          745.   }
          746.   
          747. > static int remove_session_lock(SSL_CTX *ctx, SSL_SESSION *c, int lck)
          748.   {
          749.       SSL_SESSION *r;

ssl/ssl_sess.c:757:17: Call
          755.           if ((r = lh_SSL_SESSION_retrieve(ctx->sessions, c)) != NULL) {
          756.               ret = 1;
          757.               r = lh_SSL_SESSION_delete(ctx->sessions, r);
                                 ^
          758.               SSL_SESSION_list_remove(ctx, r);
          759.           }

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:128:1: <LHS trace>
126.   }
127.   
128. > void *OPENSSL_LH_delete(OPENSSL_LHASH *lh, const void *data)
129.   {
130.       unsigned long hash;

crypto/lhash/lhash.c:128:1: Parameter `lh->num_items`
              126.   }
              127.   
              128. > void *OPENSSL_LH_delete(OPENSSL_LHASH *lh, const void *data)
              129.   {
              130.       unsigned long hash;

crypto/lhash/lhash.c:148:5: Binary operation: ([0, max(0, s->ctx->sessions->num_items)] - 1):unsigned64 by call to `SSL_copy_session_id` 
              146.       }
              147.   
              148.       lh->num_items--;
                         ^
              149.       if ((lh->num_nodes > MIN_NODES) &&
              150.           (lh->down_load >= (lh->num_items * LH_LOAD_MULT / lh->num_nodes)))
