apps/s_server.c:450: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned32 by call to `SSL_set_SSL_CTX`.
Showing all 14 steps of the trace


apps/s_server.c:450:13: Call
448.           if (ctx2 != NULL) {
449.               BIO_printf(p->biodebug, "Switching server context.\n");
450.               SSL_set_SSL_CTX(s, ctx2);
                   ^
451.           }
452.       }

ssl/ssl_lib.c:3602:1: Parameter `ssl->ctx->sessions->num_nodes`
  3600.   }
  3601.   
  3602. > SSL_CTX *SSL_set_SSL_CTX(SSL *ssl, SSL_CTX *ctx)
  3603.   {
  3604.       CERT *new_cert;

ssl/ssl_lib.c:3643:5: Call
  3641.   
  3642.       SSL_CTX_up_ref(ctx);
  3643.       SSL_CTX_free(ssl->ctx);     /* decrement reference count */
              ^
  3644.       ssl->ctx = ctx;
  3645.   

ssl/ssl_lib.c:2794:1: Parameter `a->sessions->num_nodes`
    2792.   }
    2793.   
    2794. > void SSL_CTX_free(SSL_CTX *a)
    2795.   {
    2796.       int i;

ssl/ssl_lib.c:2820:9: Call
    2818.        */
    2819.       if (a->sessions != NULL)
    2820.           SSL_CTX_flush_sessions(a, 0);
                    ^
    2821.   
    2822.       CRYPTO_free_ex_data(CRYPTO_EX_INDEX_SSL_CTX, a, &a->ex_data);

ssl/ssl_sess.c:1039:1: Parameter `s->sessions->num_nodes`
      1037.   IMPLEMENT_LHASH_DOALL_ARG(SSL_SESSION, TIMEOUT_PARAM);
      1038.   
      1039. > void SSL_CTX_flush_sessions(SSL_CTX *s, long t)
      1040.   {
      1041.       unsigned long i;

ssl/ssl_sess.c:1052:5: Call
      1050.       i = lh_SSL_SESSION_get_down_load(s->sessions);
      1051.       lh_SSL_SESSION_set_down_load(s->sessions, 0);
      1052.       lh_SSL_SESSION_doall_TIMEOUT_PARAM(tp.cache, timeout_cb, &tp);
                  ^
      1053.       lh_SSL_SESSION_set_down_load(s->sessions, i);
      1054.       CRYPTO_THREAD_unlock(s->lock);

ssl/ssl_sess.c:1037:1: Parameter `lh->num_nodes`
        1035.   }
        1036.   
        1037. > IMPLEMENT_LHASH_DOALL_ARG(SSL_SESSION, TIMEOUT_PARAM);
        1038.   
        1039.   void SSL_CTX_flush_sessions(SSL_CTX *s, long t)

ssl/ssl_sess.c:1037:1: Call
        1035.   }
        1036.   
        1037. > IMPLEMENT_LHASH_DOALL_ARG(SSL_SESSION, TIMEOUT_PARAM);
        1038.   
        1039.   void SSL_CTX_flush_sessions(SSL_CTX *s, long t)

crypto/lhash/lhash.c:186:1: Parameter `lh->num_nodes`
          184.   }
          185.   
          186. > void OPENSSL_LH_doall_arg(OPENSSL_LHASH *lh, OPENSSL_LH_DOALL_FUNCARG func, void *arg)
          187.   {
          188.       doall_util_fn(lh, 1, (OPENSSL_LH_DOALL_FUNC)0, func, arg);

crypto/lhash/lhash.c:188:5: Call
          186.   void OPENSSL_LH_doall_arg(OPENSSL_LHASH *lh, OPENSSL_LH_DOALL_FUNCARG func, void *arg)
          187.   {
          188.       doall_util_fn(lh, 1, (OPENSSL_LH_DOALL_FUNC)0, func, arg);
                     ^
          189.   }
          190.   

crypto/lhash/lhash.c:154:1: <LHS trace>
152.   }
153.   
154. > static void doall_util_fn(OPENSSL_LHASH *lh, int use_arg,
155.                             OPENSSL_LH_DOALL_FUNC func,
156.                             OPENSSL_LH_DOALL_FUNCARG func_arg, void *arg)

crypto/lhash/lhash.c:154:1: Parameter `lh->num_nodes`
            152.   }
            153.   
            154. > static void doall_util_fn(OPENSSL_LHASH *lh, int use_arg,
            155.                             OPENSSL_LH_DOALL_FUNC func,
            156.                             OPENSSL_LH_DOALL_FUNCARG func_arg, void *arg)

crypto/lhash/lhash.c:168:10: Binary operation: ([0, +oo] - 1):unsigned32 by call to `SSL_set_SSL_CTX` 
            166.        * memory leaks otherwise
            167.        */
            168.       for (i = lh->num_nodes - 1; i >= 0; i--) {
                            ^
            169.           a = lh->b[i];
            170.           while (a != NULL) {
