ssl/ssl_lib.c:3053: 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:3029:1: Parameter `s->ctx->sessions->num_items`
3027.   }
3028.   
3029. > SSL *SSL_dup(SSL *s)
3030.   {
3031.       STACK_OF(X509_NAME) *sk;

ssl/ssl_lib.c:3045:16: Call
3043.        * Otherwise, copy configuration state, and session if set.
3044.        */
3045.       if ((ret = SSL_new(SSL_get_SSL_CTX(s))) == NULL)
                       ^
3046.           return (NULL);
3047.   

ssl/ssl_lib.c:518:1: Parameter `ctx->sessions->num_items`
  516.   }
  517.   
  518. > SSL *SSL_new(SSL_CTX *ctx)
  519.   {
  520.       SSL *s;

ssl/ssl_lib.c:3053:14: Call
3051.            * session-id, SSL_METHOD, sid_ctx, and 'cert'
3052.            */
3053.           if (!SSL_copy_session_id(ret, s))
                     ^
3054.               goto err;
3055.       } else {

ssl/ssl_lib.c:1292:1: Parameter `t->initial_ctx->sessions->num_items`
  1290.    * modify.  We need to be able to read f without being hassled
  1291.    */
  1292. > int SSL_copy_session_id(SSL *t, const SSL *f)
  1293.   {
  1294.       int i;

ssl/ssl_lib.c:1296:10: Call
  1294.       int i;
  1295.       /* Do we need to to SSL locking? */
  1296.       if (!SSL_set_session(t, SSL_get_session(f))) {
                   ^
  1297.           return 0;
  1298.       }

ssl/ssl_sess.c:777:1: Parameter `s->initial_ctx->sessions->num_items`
    775.   }
    776.   
    777. > int SSL_set_session(SSL *s, SSL_SESSION *session)
    778.   {
    779.       ssl_clear_bad_session(s);

ssl/ssl_sess.c:779:5: Call
    777.   int SSL_set_session(SSL *s, SSL_SESSION *session)
    778.   {
    779.       ssl_clear_bad_session(s);
               ^
    780.       if (s->ctx->method != s->method) {
    781.           if (!SSL_set_ssl_method(s, s->ctx->method))

ssl/ssl_sess.c:986:1: Parameter `s->initial_ctx->sessions->num_items`
      984.   }
      985.   
      986. > int ssl_clear_bad_session(SSL *s)
      987.   {
      988.       if ((s->session != NULL) &&

ssl/ssl_sess.c:991:9: Call
      989.           !(s->shutdown & SSL_SENT_SHUTDOWN) &&
      990.           !(SSL_in_init(s) || SSL_in_before(s))) {
      991.           SSL_CTX_remove_session(s->session_ctx, s->session);
                     ^
      992.           return (1);
      993.       } else

ssl/ssl_sess.c:693:1: Parameter `ctx->sessions->num_items`
        691.   }
        692.   
        693. > int SSL_CTX_remove_session(SSL_CTX *ctx, SSL_SESSION *c)
        694.   {
        695.       return remove_session_lock(ctx, c, 1);

ssl/ssl_sess.c:695:12: Call
        693.   int SSL_CTX_remove_session(SSL_CTX *ctx, SSL_SESSION *c)
        694.   {
        695.       return remove_session_lock(ctx, c, 1);
                          ^
        696.   }
        697.   

ssl/ssl_sess.c:698:1: Parameter `ctx->sessions->num_items`
          696.   }
          697.   
          698. > static int remove_session_lock(SSL_CTX *ctx, SSL_SESSION *c, int lck)
          699.   {
          700.       SSL_SESSION *r;

ssl/ssl_sess.c:708:17: Call
          706.           if ((r = lh_SSL_SESSION_retrieve(ctx->sessions, c)) == c) {
          707.               ret = 1;
          708.               r = lh_SSL_SESSION_delete(ctx->sessions, c);
                                 ^
          709.               SSL_SESSION_list_remove(ctx, c);
          710.           }

ssl/ssl_locl.h:581:1: Parameter `lh->num_items`
            579.   };
            580.   
            581. > DEFINE_LHASH_OF(SSL_SESSION);
            582.   /* Needed in ssl_cert.c */
            583.   DEFINE_LHASH_OF(X509_NAME);

ssl/ssl_locl.h:581:1: Call
            579.   };
            580.   
            581. > DEFINE_LHASH_OF(SSL_SESSION);
            582.   /* Needed in ssl_cert.c */
            583.   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->ctx->sessions->num_items)] - 1):unsigned64 by call to `SSL_copy_session_id` 
              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)))
