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


test/sslapitest.c:1268:14: Call
1266.       for (i = 0; i < idx * 2; i++) {
1267.           new_called = 0;
1268.           if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl,
                     ^
1269.                                                 &clientssl, NULL, NULL))
1270.                   || !TEST_true(SSL_set_session(clientssl, sesscache[i])))

test/ssltestlib.c:635:15: Call
  633.       if (*sssl != NULL)
  634.           serverssl = *sssl;
  635.       else if (!TEST_ptr(serverssl = SSL_new(serverctx)))
                       ^
  636.           goto error;
  637.       if (*cssl != NULL)

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

test/sslapitest.c:1270:21: Call
1268.           if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl,
1269.                                                 &clientssl, NULL, NULL))
1270.                   || !TEST_true(SSL_set_session(clientssl, sesscache[i])))
                            ^
1271.               goto end;
1272.   

ssl/ssl_sess.c:844:1: Parameter `s->session_ctx->sessions->num_items`
  842.   }
  843.   
  844. > int SSL_set_session(SSL *s, SSL_SESSION *session)
  845.   {
  846.       ssl_clear_bad_session(s);

ssl/ssl_sess.c:846:5: Call
  844.   int SSL_set_session(SSL *s, SSL_SESSION *session)
  845.   {
  846.       ssl_clear_bad_session(s);
             ^
  847.       if (s->ctx->method != s->method) {
  848.           if (!SSL_set_ssl_method(s, s->ctx->method))

ssl/ssl_sess.c:1139:1: Parameter `s->session_ctx->sessions->num_items`
    1137.   }
    1138.   
    1139. > int ssl_clear_bad_session(SSL *s)
    1140.   {
    1141.       if ((s->session != NULL) &&

test/sslapitest.c:1302:9: Call
1300.           SSL_shutdown(clientssl);
1301.           SSL_shutdown(serverssl);
1302.           SSL_free(serverssl);
                ^
1303.           SSL_free(clientssl);
1304.           serverssl = clientssl = NULL;

ssl/ssl_lib.c:1130:1: Parameter `s->session_ctx->sessions->num_items`
  1128.   }
  1129.   
  1130. > void SSL_free(SSL *s)
  1131.   {
  1132.       int i;

ssl/ssl_lib.c:1161:9: Call
  1159.       /* Make the next call work :-) */
  1160.       if (s->session != NULL) {
  1161.           ssl_clear_bad_session(s);
                  ^
  1162.           SSL_SESSION_free(s->session);
  1163.       }

ssl/ssl_sess.c:1139:1: Parameter `s->session_ctx->sessions->num_items`
    1137.   }
    1138.   
    1139. > int ssl_clear_bad_session(SSL *s)
    1140.   {
    1141.       if ((s->session != NULL) &&

ssl/ssl_sess.c:1144:9: Call
    1142.           !(s->shutdown & SSL_SENT_SHUTDOWN) &&
    1143.           !(SSL_in_init(s) || SSL_in_before(s))) {
    1144.           SSL_CTX_remove_session(s->session_ctx, s->session);
                    ^
    1145.           return 1;
    1146.       } else

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

ssl/ssl_sess.c:759:12: Call
      757.   int SSL_CTX_remove_session(SSL_CTX *ctx, SSL_SESSION *c)
      758.   {
      759.       return remove_session_lock(ctx, c, 1);
                        ^
      760.   }
      761.   

ssl/ssl_sess.c:762:1: Parameter `ctx->sessions->num_items`
        760.   }
        761.   
        762. > static int remove_session_lock(SSL_CTX *ctx, SSL_SESSION *c, int lck)
        763.   {
        764.       SSL_SESSION *r;

ssl/ssl_sess.c:772:17: Call
        770.           if ((r = lh_SSL_SESSION_retrieve(ctx->sessions, c)) != NULL) {
        771.               ret = 1;
        772.               r = lh_SSL_SESSION_delete(ctx->sessions, r);
                               ^
        773.               SSL_SESSION_list_remove(ctx, r);
        774.           }

ssl/ssl_locl.h:727:1: Parameter `lh->num_items`
          725.   } TLSEXT_INDEX;
          726.   
          727. > DEFINE_LHASH_OF(SSL_SESSION);
          728.   /* Needed in ssl_cert.c */
          729.   DEFINE_LHASH_OF(X509_NAME);

ssl/ssl_locl.h:727:1: Call
          725.   } TLSEXT_INDEX;
          726.   
          727. > DEFINE_LHASH_OF(SSL_SESSION);
          728.   /* Needed in ssl_cert.c */
          729.   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)))
