test/sslapitest.c:133: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned64 by call to `SSL_set_session`.
Showing all 19 steps of the trace


test/sslapitest.c:117:10: Call
115.       }
116.   
117.       if (!create_ssl_connection(sctx, cctx, &serverssl2, &clientssl2, NULL,
                ^
118.                                  NULL)) {
119.           printf("Unable to create second SSL connection\n");

test/ssltestlib.c:62:17: Call
  60.       BIO *s_to_c_bio = NULL, *c_to_s_bio = NULL;
  61.   
  62.       serverssl = SSL_new(serverctx);
                        ^
  63.       clientssl = SSL_new(clientctx);
  64.   

ssl/ssl_lib.c:522:1: Parameter `ctx->sessions->num_items`
    520.   }
    521.   
    522. > SSL *SSL_new(SSL_CTX *ctx)
    523.   {
    524.       SSL *s;

test/ssltestlib.c:63:17: Call
  61.   
  62.       serverssl = SSL_new(serverctx);
  63.       clientssl = SSL_new(clientctx);
                        ^
  64.   
  65.       if (serverssl == NULL || clientssl == NULL) {

ssl/ssl_lib.c:522:1: Parameter `ctx->sessions->num_items`
    520.   }
    521.   
    522. > SSL *SSL_new(SSL_CTX *ctx)
    523.   {
    524.       SSL *s;

test/sslapitest.c:133:10: Call
131.        * SSL_set_session() documentation.
132.        */
133.       if (!SSL_set_session(clientssl2, sess1)) {
                ^
134.           printf("Unexpected failure setting session\n");
135.           goto end;

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, +oo] - 1):unsigned64 by call to `SSL_set_session` 
            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)))
