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


test/sslapitest.c:843:10: Call
841.   
842.       new_called = remove_called = 0;
843.       if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl2,
                ^
844.                                         &clientssl2, NULL, NULL))
845.               || !TEST_true(SSL_set_session(clientssl2, sess1))

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:605:1: Parameter `ctx->sessions->num_items`
    603.   }
    604.   
    605. > SSL *SSL_new(SSL_CTX *ctx)
    606.   {
    607.       SSL *s;

test/sslapitest.c:845:17: Call
843.       if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl2,
844.                                         &clientssl2, NULL, NULL))
845.               || !TEST_true(SSL_set_session(clientssl2, sess1))
                       ^
846.               || !TEST_true(create_ssl_connection(serverssl2, clientssl2,
847.                                                   SSL_ERROR_NONE))

ssl/ssl_sess.c:818:1: Parameter `s->session_ctx->sessions->num_items`
  816.   }
  817.   
  818. > int SSL_set_session(SSL *s, SSL_SESSION *session)
  819.   {
  820.       ssl_clear_bad_session(s);

ssl/ssl_sess.c:820:5: Call
  818.   int SSL_set_session(SSL *s, SSL_SESSION *session)
  819.   {
  820.       ssl_clear_bad_session(s);
             ^
  821.       if (s->ctx->method != s->method) {
  822.           if (!SSL_set_ssl_method(s, s->ctx->method))

ssl/ssl_sess.c:1067:1: Parameter `s->session_ctx->sessions->num_items`
    1065.   }
    1066.   
    1067. > int ssl_clear_bad_session(SSL *s)
    1068.   {
    1069.       if ((s->session != NULL) &&

ssl/ssl_sess.c:1072:9: Call
    1070.           !(s->shutdown & SSL_SENT_SHUTDOWN) &&
    1071.           !(SSL_in_init(s) || SSL_in_before(s))) {
    1072.           SSL_CTX_remove_session(s->session_ctx, s->session);
                    ^
    1073.           return (1);
    1074.       } else

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

ssl/ssl_sess.c:732:12: Call
      730.   int SSL_CTX_remove_session(SSL_CTX *ctx, SSL_SESSION *c)
      731.   {
      732.       return remove_session_lock(ctx, c, 1);
                        ^
      733.   }
      734.   

ssl/ssl_sess.c:735:1: Parameter `ctx->sessions->num_items`
        733.   }
        734.   
        735. > static int remove_session_lock(SSL_CTX *ctx, SSL_SESSION *c, int lck)
        736.   {
        737.       SSL_SESSION *r;

ssl/ssl_sess.c:745:17: Call
        743.           if ((r = lh_SSL_SESSION_retrieve(ctx->sessions, c)) == c) {
        744.               ret = 1;
        745.               r = lh_SSL_SESSION_delete(ctx->sessions, c);
                               ^
        746.               SSL_SESSION_list_remove(ctx, c);
        747.           }

ssl/ssl_locl.h:702:1: Parameter `lh->num_items`
          700.   } TLSEXT_INDEX;
          701.   
          702. > DEFINE_LHASH_OF(SSL_SESSION);
          703.   /* Needed in ssl_cert.c */
          704.   DEFINE_LHASH_OF(X509_NAME);

ssl/ssl_locl.h:702:1: Call
          700.   } TLSEXT_INDEX;
          701.   
          702. > DEFINE_LHASH_OF(SSL_SESSION);
          703.   /* Needed in ssl_cert.c */
          704.   DEFINE_LHASH_OF(X509_NAME);

crypto/lhash/lhash.c:106:1: <LHS trace>
104.   }
105.   
106. > void *OPENSSL_LH_delete(OPENSSL_LHASH *lh, const void *data)
107.   {
108.       unsigned long hash;

crypto/lhash/lhash.c:106:1: Parameter `lh->num_items`
            104.   }
            105.   
            106. > void *OPENSSL_LH_delete(OPENSSL_LHASH *lh, const void *data)
            107.   {
            108.       unsigned long hash;

crypto/lhash/lhash.c:126:5: Binary operation: ([0, +oo] - 1):unsigned64 by call to `SSL_set_session` 
            124.       }
            125.   
            126.       lh->num_items--;
                       ^
            127.       if ((lh->num_nodes > MIN_NODES) &&
            128.           (lh->down_load >= (lh->num_items * LH_LOAD_MULT / lh->num_nodes)))
