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


test/sslapitest.c:829:10: Call
827.           goto end;
828.   
829.       if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl2,
                ^
830.                                         &clientssl2, NULL, NULL))
831.               || !TEST_true(create_ssl_connection(serverssl2, clientssl2,

test/ssltestlib.c:559:15: Call
  557.       if (*sssl != NULL)
  558.           serverssl = *sssl;
  559.       else if (!TEST_ptr(serverssl = SSL_new(serverctx)))
                       ^
  560.           goto error;
  561.       if (*cssl != NULL)

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

test/sslapitest.c:845:10: Call
843.        * See SSL_set_session() documentation.
844.        */
845.       if (!TEST_true(SSL_set_session(clientssl2, sess1)))
                ^
846.           goto end;
847.       if (fix.use_ext_cache && (new_called != 2 || remove_called != 1))

ssl/ssl_sess.c:812:1: Parameter `s->session_ctx->sessions->num_items`
  810.   }
  811.   
  812. > int SSL_set_session(SSL *s, SSL_SESSION *session)
  813.   {
  814.       ssl_clear_bad_session(s);

ssl/ssl_sess.c:814:5: Call
  812.   int SSL_set_session(SSL *s, SSL_SESSION *session)
  813.   {
  814.       ssl_clear_bad_session(s);
             ^
  815.       if (s->ctx->method != s->method) {
  816.           if (!SSL_set_ssl_method(s, s->ctx->method))

ssl/ssl_sess.c:1049:1: Parameter `s->session_ctx->sessions->num_items`
    1047.   }
    1048.   
    1049. > int ssl_clear_bad_session(SSL *s)
    1050.   {
    1051.       if ((s->session != NULL) &&

test/sslapitest.c:855:21: Call
853.           /* Should succeeded because it should not already be in the cache */
854.           if (!TEST_true(SSL_CTX_add_session(cctx, sess2))
855.                   || !TEST_true(SSL_CTX_remove_session(cctx, sess2)))
                           ^
856.               goto end;
857.   

ssl/ssl_sess.c:725:1: Parameter `ctx->sessions->num_items`
  723.   }
  724.   
  725. > int SSL_CTX_remove_session(SSL_CTX *ctx, SSL_SESSION *c)
  726.   {
  727.       return remove_session_lock(ctx, c, 1);

ssl/ssl_sess.c:727:12: Call
  725.   int SSL_CTX_remove_session(SSL_CTX *ctx, SSL_SESSION *c)
  726.   {
  727.       return remove_session_lock(ctx, c, 1);
                    ^
  728.   }
  729.   

ssl/ssl_sess.c:730:1: Parameter `ctx->sessions->num_items`
    728.   }
    729.   
    730. > static int remove_session_lock(SSL_CTX *ctx, SSL_SESSION *c, int lck)
    731.   {
    732.       SSL_SESSION *r;

ssl/ssl_sess.c:740:17: Call
    738.           if ((r = lh_SSL_SESSION_retrieve(ctx->sessions, c)) == c) {
    739.               ret = 1;
    740.               r = lh_SSL_SESSION_delete(ctx->sessions, c);
                           ^
    741.               SSL_SESSION_list_remove(ctx, c);
    742.           }

ssl/ssl_locl.h:721:1: Parameter `lh->num_items`
      719.   } TLSEXT_INDEX;
      720.   
      721. > DEFINE_LHASH_OF(SSL_SESSION);
      722.   /* Needed in ssl_cert.c */
      723.   DEFINE_LHASH_OF(X509_NAME);

ssl/ssl_locl.h:721:1: Call
      719.   } TLSEXT_INDEX;
      720.   
      721. > DEFINE_LHASH_OF(SSL_SESSION);
      722.   /* Needed in ssl_cert.c */
      723.   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_CTX_remove_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)))
