ssl/ssl_lib.c:3727: 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:3703:1: Parameter `s->ctx->sessions->num_items`
3701.   }
3702.   
3703. > SSL *SSL_dup(SSL *s)
3704.   {
3705.       STACK_OF(X509_NAME) *sk;

ssl/ssl_lib.c:3719:16: Call
3717.        * Otherwise, copy configuration state, and session if set.
3718.        */
3719.       if ((ret = SSL_new(SSL_get_SSL_CTX(s))) == NULL)
                       ^
3720.           return NULL;
3721.   

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

ssl/ssl_lib.c:3727:14: Call
3725.            * session-id, SSL_METHOD, sid_ctx, and 'cert'
3726.            */
3727.           if (!SSL_copy_session_id(ret, s))
                     ^
3728.               goto err;
3729.       } else {

ssl/ssl_lib.c:1550:1: Parameter `t->session_ctx->sessions->num_items`
  1548.    * modify.  We need to be able to read f without being hassled
  1549.    */
  1550. > int SSL_copy_session_id(SSL *t, const SSL *f)
  1551.   {
  1552.       int i;

ssl/ssl_lib.c:1554:10: Call
  1552.       int i;
  1553.       /* Do we need to to SSL locking? */
  1554.       if (!SSL_set_session(t, SSL_get_session(f))) {
                   ^
  1555.           return 0;
  1556.       }

ssl/ssl_sess.c:840:1: Parameter `s->session_ctx->sessions->num_items`
    838.   }
    839.   
    840. > int SSL_set_session(SSL *s, SSL_SESSION *session)
    841.   {
    842.       ssl_clear_bad_session(s);

ssl/ssl_sess.c:842:5: Call
    840.   int SSL_set_session(SSL *s, SSL_SESSION *session)
    841.   {
    842.       ssl_clear_bad_session(s);
               ^
    843.       if (s->ctx->method != s->method) {
    844.           if (!SSL_set_ssl_method(s, s->ctx->method))

ssl/ssl_sess.c:1135:1: Parameter `s->session_ctx->sessions->num_items`
      1133.   }
      1134.   
      1135. > int ssl_clear_bad_session(SSL *s)
      1136.   {
      1137.       if ((s->session != NULL) &&

ssl/ssl_sess.c:1140:9: Call
      1138.           !(s->shutdown & SSL_SENT_SHUTDOWN) &&
      1139.           !(SSL_in_init(s) || SSL_in_before(s))) {
      1140.           SSL_CTX_remove_session(s->session_ctx, s->session);
                      ^
      1141.           return 1;
      1142.       } else

ssl/ssl_sess.c:751:1: Parameter `ctx->sessions->num_items`
        749.   }
        750.   
        751. > int SSL_CTX_remove_session(SSL_CTX *ctx, SSL_SESSION *c)
        752.   {
        753.       return remove_session_lock(ctx, c, 1);

ssl/ssl_sess.c:753:12: Call
        751.   int SSL_CTX_remove_session(SSL_CTX *ctx, SSL_SESSION *c)
        752.   {
        753.       return remove_session_lock(ctx, c, 1);
                          ^
        754.   }
        755.   

ssl/ssl_sess.c:756:1: Parameter `ctx->sessions->num_items`
          754.   }
          755.   
          756. > static int remove_session_lock(SSL_CTX *ctx, SSL_SESSION *c, int lck)
          757.   {
          758.       SSL_SESSION *r;

ssl/ssl_sess.c:766:17: Call
          764.           if ((r = lh_SSL_SESSION_retrieve(ctx->sessions, c)) != NULL) {
          765.               ret = 1;
          766.               r = lh_SSL_SESSION_delete(ctx->sessions, r);
                                 ^
          767.               SSL_SESSION_list_remove(ctx, r);
          768.           }

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: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->ctx->sessions->num_items)] - 1):unsigned64 by call to `SSL_copy_session_id` 
              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)))
