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


test/sslapitest.c:1020:10: Call
1018.       }
1019.   
1020.       if (!create_ssl_connection(serverssl2, clientssl2, SSL_ERROR_NONE)) {
                 ^
1021.           printf("Unable to create second SSL connection\n");
1022.           goto end;

test/ssltestlib.c:654:20: Call
  652.           err = SSL_ERROR_WANT_WRITE;
  653.           while (!clienterr && retc <= 0 && err == SSL_ERROR_WANT_WRITE) {
  654.               retc = SSL_connect(clientssl);
                            ^
  655.               if (retc <= 0)
  656.                   err = SSL_get_error(clientssl, retc);

ssl/ssl_lib.c:1469:1: Parameter `s->session_ctx->sessions->num_items`
    1467.   }
    1468.   
    1469. > int SSL_connect(SSL *s)
    1470.   {
    1471.       if (s->handshake_func == NULL) {

ssl/ssl_lib.c:1476:12: Call
    1474.       }
    1475.   
    1476.       return SSL_do_handshake(s);
                       ^
    1477.   }
    1478.   

ssl/ssl_lib.c:3245:1: Parameter `s->session_ctx->sessions->num_items`
      3243.   }
      3244.   
      3245. > int SSL_do_handshake(SSL *s)
      3246.   {
      3247.       int ret = 1;

test/ssltestlib.c:654:20: Call
  652.           err = SSL_ERROR_WANT_WRITE;
  653.           while (!clienterr && retc <= 0 && err == SSL_ERROR_WANT_WRITE) {
  654.               retc = SSL_connect(clientssl);
                            ^
  655.               if (retc <= 0)
  656.                   err = SSL_get_error(clientssl, retc);

ssl/ssl_lib.c:1469:1: Parameter `s->session_ctx->sessions->num_items`
    1467.   }
    1468.   
    1469. > int SSL_connect(SSL *s)
    1470.   {
    1471.       if (s->handshake_func == NULL) {

ssl/ssl_lib.c:1476:12: Call
    1474.       }
    1475.   
    1476.       return SSL_do_handshake(s);
                       ^
    1477.   }
    1478.   

ssl/ssl_lib.c:3245:1: Parameter `s->session_ctx->sessions->num_items`
      3243.   }
      3244.   
      3245. > int SSL_do_handshake(SSL *s)
      3246.   {
      3247.       int ret = 1;

test/sslapitest.c:1040:10: Call
1038.        * SSL_set_session() documentation.
1039.        */
1040.       if (!SSL_set_session(clientssl2, sess1)) {
                 ^
1041.           printf("Unexpected failure setting session\n");
1042.           goto end;

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

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

ssl/ssl_sess.c:1036:1: Parameter `s->session_ctx->sessions->num_items`
    1034.   }
    1035.   
    1036. > int ssl_clear_bad_session(SSL *s)
    1037.   {
    1038.       if ((s->session != NULL) &&

test/sslapitest.c:1065:14: Call
1063.           }
1064.   
1065.           if (!SSL_CTX_remove_session(cctx, sess2)) {
                     ^
1066.               printf("Unexpected failure removing session from cache\n");
1067.               goto end;

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

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

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

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

ssl/ssl_locl.h:688:1: Parameter `lh->num_items`
      686.   } CLIENTHELLO_MSG;
      687.   
      688. > DEFINE_LHASH_OF(SSL_SESSION);
      689.   /* Needed in ssl_cert.c */
      690.   DEFINE_LHASH_OF(X509_NAME);

ssl/ssl_locl.h:688:1: Call
      686.   } CLIENTHELLO_MSG;
      687.   
      688. > DEFINE_LHASH_OF(SSL_SESSION);
      689.   /* Needed in ssl_cert.c */
      690.   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)))
