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


test/sslapitest.c:93:10: Call
91.       }
92.   
93.       if (!create_ssl_objects(sctx, cctx, &serverssl, &clientssl, NULL, NULL)) {
               ^
94.           printf("Unable to create SSL objects\n");
95.           goto end;

test/ssltestlib.c:579:21: Call
  577.   
  578.       if (*sssl == NULL)
  579.           serverssl = SSL_new(serverctx);
                             ^
  580.       else
  581.           serverssl = *sssl;

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/sslapitest.c:107:10: Call
105.        * doesn't leak (when using enable-crypto-mdebug).
106.        */
107.       if (!SSL_clear(serverssl)) {
                ^
108.           printf("Unexpected failure from SSL_clear()\n");
109.           goto end;

ssl/ssl_lib.c:442:1: Parameter `s->initial_ctx->sessions->num_items`
  440.   }
  441.   
  442. > int SSL_clear(SSL *s)
  443.   {
  444.       if (s->method == NULL) {

ssl/ssl_lib.c:449:9: Call
  447.       }
  448.   
  449.       if (ssl_clear_bad_session(s)) {
                 ^
  450.           SSL_SESSION_free(s->session);
  451.           s->session = NULL;

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_clear` 
            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)))
