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


test/tls13encryptiontest.c:302:9: Call
300.       }
301.   
302.       s = SSL_new(ctx);
               ^
303.       if (s == NULL) {
304.           fprintf(stderr, "Failed creating SSL\n");

ssl/ssl_lib.c:519:1: Parameter `ctx->sessions->num_items`
  517.   }
  518.   
  519. > SSL *SSL_new(SSL_CTX *ctx)
  520.   {
  521.       SSL *s;

test/tls13encryptiontest.c:375:5: Call
373.       OPENSSL_free(iv);
374.       OPENSSL_free(seq);
375.       SSL_free(s);
           ^
376.       SSL_CTX_free(ctx);
377.       return ret;

ssl/ssl_lib.c:961:1: Parameter `s->initial_ctx->sessions->num_items`
  959.   }
  960.   
  961. > void SSL_free(SSL *s)
  962.   {
  963.       int i;

ssl/ssl_lib.c:991:9: Call
  989.       /* Make the next call work :-) */
  990.       if (s->session != NULL) {
  991.           ssl_clear_bad_session(s);
                 ^
  992.           SSL_SESSION_free(s->session);
  993.       }

ssl/ssl_sess.c:1026:1: Parameter `s->initial_ctx->sessions->num_items`
    1024.   }
    1025.   
    1026. > int ssl_clear_bad_session(SSL *s)
    1027.   {
    1028.       if ((s->session != NULL) &&

ssl/ssl_sess.c:1031:9: Call
    1029.           !(s->shutdown & SSL_SENT_SHUTDOWN) &&
    1030.           !(SSL_in_init(s) || SSL_in_before(s))) {
    1031.           SSL_CTX_remove_session(s->session_ctx, s->session);
                    ^
    1032.           return (1);
    1033.       } else

ssl/ssl_sess.c:715:1: Parameter `ctx->sessions->num_items`
      713.   }
      714.   
      715. > int SSL_CTX_remove_session(SSL_CTX *ctx, SSL_SESSION *c)
      716.   {
      717.       return remove_session_lock(ctx, c, 1);

ssl/ssl_sess.c:717:12: Call
      715.   int SSL_CTX_remove_session(SSL_CTX *ctx, SSL_SESSION *c)
      716.   {
      717.       return remove_session_lock(ctx, c, 1);
                        ^
      718.   }
      719.   

ssl/ssl_sess.c:720:1: Parameter `ctx->sessions->num_items`
        718.   }
        719.   
        720. > static int remove_session_lock(SSL_CTX *ctx, SSL_SESSION *c, int lck)
        721.   {
        722.       SSL_SESSION *r;

ssl/ssl_sess.c:730:17: Call
        728.           if ((r = lh_SSL_SESSION_retrieve(ctx->sessions, c)) == c) {
        729.               ret = 1;
        730.               r = lh_SSL_SESSION_delete(ctx->sessions, c);
                               ^
        731.               SSL_SESSION_list_remove(ctx, c);
        732.           }

ssl/ssl_locl.h:605:1: Parameter `lh->num_items`
          603.   };
          604.   
          605. > DEFINE_LHASH_OF(SSL_SESSION);
          606.   /* Needed in ssl_cert.c */
          607.   DEFINE_LHASH_OF(X509_NAME);

ssl/ssl_locl.h:605:1: Call
          603.   };
          604.   
          605. > DEFINE_LHASH_OF(SSL_SESSION);
          606.   /* Needed in ssl_cert.c */
          607.   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_free` 
            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)))
