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


test/fatalerrtest.c:41:17: Call
39.       if (!TEST_true(SSL_CTX_set_cipher_list(sctx, "AES128-SHA"))
40.               || !TEST_true(SSL_CTX_set_cipher_list(cctx, "AES256-SHA"))
41.               || !TEST_true(create_ssl_objects(sctx, cctx, &sssl, &cssl, NULL,
                      ^
42.                             NULL)))
43.           goto err;

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

test/fatalerrtest.c:72:5: Call
70.       ret = 1;
71.    err:
72.       SSL_free(sssl);
          ^
73.       SSL_free(cssl);
74.       SSL_CTX_free(sctx);

ssl/ssl_lib.c:1074:1: Parameter `s->session_ctx->sessions->num_items`
  1072.   }
  1073.   
  1074. > void SSL_free(SSL *s)
  1075.   {
  1076.       int i;

ssl/ssl_lib.c:1105:9: Call
  1103.       /* Make the next call work :-) */
  1104.       if (s->session != NULL) {
  1105.           ssl_clear_bad_session(s);
                  ^
  1106.           SSL_SESSION_free(s->session);
  1107.       }

ssl/ssl_sess.c:1120:1: Parameter `s->session_ctx->sessions->num_items`
    1118.   }
    1119.   
    1120. > int ssl_clear_bad_session(SSL *s)
    1121.   {
    1122.       if ((s->session != NULL) &&

ssl/ssl_sess.c:1125:9: Call
    1123.           !(s->shutdown & SSL_SENT_SHUTDOWN) &&
    1124.           !(SSL_in_init(s) || SSL_in_before(s))) {
    1125.           SSL_CTX_remove_session(s->session_ctx, s->session);
                    ^
    1126.           return 1;
    1127.       } else

ssl/ssl_sess.c:737:1: Parameter `ctx->sessions->num_items`
      735.   }
      736.   
      737. > int SSL_CTX_remove_session(SSL_CTX *ctx, SSL_SESSION *c)
      738.   {
      739.       return remove_session_lock(ctx, c, 1);

ssl/ssl_sess.c:739:12: Call
      737.   int SSL_CTX_remove_session(SSL_CTX *ctx, SSL_SESSION *c)
      738.   {
      739.       return remove_session_lock(ctx, c, 1);
                        ^
      740.   }
      741.   

ssl/ssl_sess.c:742:1: Parameter `ctx->sessions->num_items`
        740.   }
        741.   
        742. > static int remove_session_lock(SSL_CTX *ctx, SSL_SESSION *c, int lck)
        743.   {
        744.       SSL_SESSION *r;

ssl/ssl_sess.c:752:17: Call
        750.           if ((r = lh_SSL_SESSION_retrieve(ctx->sessions, c)) == c) {
        751.               ret = 1;
        752.               r = lh_SSL_SESSION_delete(ctx->sessions, c);
                               ^
        753.               SSL_SESSION_list_remove(ctx, c);
        754.           }

ssl/ssl_locl.h:713:1: Parameter `lh->num_items`
          711.   } TLSEXT_INDEX;
          712.   
          713. > DEFINE_LHASH_OF(SSL_SESSION);
          714.   /* Needed in ssl_cert.c */
          715.   DEFINE_LHASH_OF(X509_NAME);

ssl/ssl_locl.h:713:1: Call
          711.   } TLSEXT_INDEX;
          712.   
          713. > DEFINE_LHASH_OF(SSL_SESSION);
          714.   /* Needed in ssl_cert.c */
          715.   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, +oo] - 1):unsigned64 by call to `SSL_free` 
            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)))
