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


test/sslapitest.c:4535:10: Call
4533.   
4534.   
4535.       if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl,
                 ^
4536.                                                NULL, NULL))
4537.               || !TEST_true(create_ssl_connection(serverssl, clientssl,

test/ssltestlib.c:576:15: Call
  574.       if (*sssl != NULL)
  575.           serverssl = *sssl;
  576.       else if (!TEST_ptr(serverssl = SSL_new(serverctx)))
                       ^
  577.           goto error;
  578.       if (*cssl != NULL)

ssl/ssl_lib.c:668:1: Parameter `ctx->sessions->num_items`
    666.   }
    667.   
    668. > SSL *SSL_new(SSL_CTX *ctx)
    669.   {
    670.       SSL *s;

test/sslapitest.c:4550:5: Call
4548.   
4549.    end:
4550.       SSL_free(serverssl);
            ^
4551.       SSL_free(clientssl);
4552.       SSL_CTX_free(sctx);

ssl/ssl_lib.c:1124:1: Parameter `s->session_ctx->sessions->num_items`
  1122.   }
  1123.   
  1124. > void SSL_free(SSL *s)
  1125.   {
  1126.       int i;

ssl/ssl_lib.c:1155:9: Call
  1153.       /* Make the next call work :-) */
  1154.       if (s->session != NULL) {
  1155.           ssl_clear_bad_session(s);
                  ^
  1156.           SSL_SESSION_free(s->session);
  1157.       }

ssl/ssl_sess.c:1134:1: Parameter `s->session_ctx->sessions->num_items`
    1132.   }
    1133.   
    1134. > int ssl_clear_bad_session(SSL *s)
    1135.   {
    1136.       if ((s->session != NULL) &&

ssl/ssl_sess.c:1139:9: Call
    1137.           !(s->shutdown & SSL_SENT_SHUTDOWN) &&
    1138.           !(SSL_in_init(s) || SSL_in_before(s))) {
    1139.           SSL_CTX_remove_session(s->session_ctx, s->session);
                    ^
    1140.           return 1;
    1141.       } else

ssl/ssl_sess.c:751:1: Parameter `ctx->sessions->num_items`
      749.   }
      750.   
      751. > int SSL_CTX_remove_session(SSL_CTX *ctx, SSL_SESSION *c)
      752.   {
      753.       return remove_session_lock(ctx, c, 1);

ssl/ssl_sess.c:753:12: Call
      751.   int SSL_CTX_remove_session(SSL_CTX *ctx, SSL_SESSION *c)
      752.   {
      753.       return remove_session_lock(ctx, c, 1);
                        ^
      754.   }
      755.   

ssl/ssl_sess.c:756:1: Parameter `ctx->sessions->num_items`
        754.   }
        755.   
        756. > static int remove_session_lock(SSL_CTX *ctx, SSL_SESSION *c, int lck)
        757.   {
        758.       SSL_SESSION *r;

ssl/ssl_sess.c:766:17: Call
        764.           if ((r = lh_SSL_SESSION_retrieve(ctx->sessions, c)) != NULL) {
        765.               ret = 1;
        766.               r = lh_SSL_SESSION_delete(ctx->sessions, r);
                               ^
        767.               SSL_SESSION_list_remove(ctx, r);
        768.           }

ssl/ssl_locl.h:732:1: Parameter `lh->num_items`
          730.   } TLSEXT_INDEX;
          731.   
          732. > DEFINE_LHASH_OF(SSL_SESSION);
          733.   /* Needed in ssl_cert.c */
          734.   DEFINE_LHASH_OF(X509_NAME);

ssl/ssl_locl.h:732:1: Call
          730.   } TLSEXT_INDEX;
          731.   
          732. > DEFINE_LHASH_OF(SSL_SESSION);
          733.   /* Needed in ssl_cert.c */
          734.   DEFINE_LHASH_OF(X509_NAME);

crypto/lhash/lhash.c:126:1: <LHS trace>
124.   }
125.   
126. > void *OPENSSL_LH_delete(OPENSSL_LHASH *lh, const void *data)
127.   {
128.       unsigned long hash;

crypto/lhash/lhash.c:126:1: Parameter `lh->num_items`
            124.   }
            125.   
            126. > void *OPENSSL_LH_delete(OPENSSL_LHASH *lh, const void *data)
            127.   {
            128.       unsigned long hash;

crypto/lhash/lhash.c:146:5: Binary operation: ([0, +oo] - 1):unsigned64 by call to `SSL_free` 
            144.       }
            145.   
            146.       lh->num_items--;
                       ^
            147.       if ((lh->num_nodes > MIN_NODES) &&
            148.           (lh->down_load >= (lh->num_items * LH_LOAD_MULT / lh->num_nodes)))
