apps/ocsp.c:899: error: INTEGER_OVERFLOW_L2
  ([0, 8] - 1):unsigned32 by call to `SSL_CTX_free`.
Showing all 17 steps of the trace


apps/ocsp.c:735:10: Call
733.   			{
734.   			BIO *sbio;
735.   			ctx = SSL_CTX_new(SSLv23_client_method());
                ^
736.   			SSL_CTX_set_mode(ctx, SSL_MODE_AUTO_RETRY);
737.   			sbio = BIO_new_ssl(ctx, 1);

ssl/ssl_lib.c:1341:16: Call
  1339.   	ret->client_cert_cb=0;
  1340.   
  1341.   	ret->sessions=lh_new(LHASH_HASH_FN(SSL_SESSION_hash),
                         ^
  1342.   			LHASH_COMP_FN(SSL_SESSION_cmp));
  1343.   	if (ret->sessions == NULL) goto err;

crypto/lhash/lhash.c:127:2: Assignment
    125.   	ret->comp=((c == NULL)?(LHASH_COMP_FN_TYPE)strcmp:c);
    126.   	ret->hash=((h == NULL)?(LHASH_HASH_FN_TYPE)lh_strhash:h);
    127.   	ret->num_nodes=MIN_NODES/2;
            ^
    128.   	ret->num_alloc_nodes=MIN_NODES;
    129.   	ret->p=0;

apps/ocsp.c:737:11: Call
735.   			ctx = SSL_CTX_new(SSLv23_client_method());
736.   			SSL_CTX_set_mode(ctx, SSL_MODE_AUTO_RETRY);
737.   			sbio = BIO_new_ssl(ctx, 1);
                 ^
738.   			cbio = BIO_push(sbio, cbio);
739.   			}

ssl/bio_ssl.c:544:1: Parameter `ctx->sessions->num_nodes`
  542.   	}
  543.   
  544. > BIO *BIO_new_ssl(SSL_CTX *ctx, int client)
  545.   	{
  546.   	BIO *ret;

apps/ocsp.c:882:2: Call
880.   	X509_free(rsigner);
881.   	X509_free(rca_cert);
882.   	TXT_DB_free(rdb);
        ^
883.   	BIO_free_all(cbio);
884.   	BIO_free_all(acbio);

crypto/txt_db/txt_db.c:340:1: Parameter `(*db->index)->num_nodes`
  338.   	}
  339.   
  340. > void TXT_DB_free(TXT_DB *db)
  341.   	{
  342.   	int i,n;

apps/ocsp.c:899:3: Call
897.   		OPENSSL_free(port);
898.   		OPENSSL_free(path);
899.   		SSL_CTX_free(ctx);
         ^
900.   		}
901.   

ssl/ssl_lib.c:1394:1: Parameter `a->sessions->num_nodes`
  1392.   #endif
  1393.   
  1394. > void SSL_CTX_free(SSL_CTX *a)
  1395.   	{
  1396.   	int i;

ssl/ssl_lib.c:1423:3: Call
  1421.   	 */
  1422.   	if (a->sessions != NULL)
  1423.   		SSL_CTX_flush_sessions(a,0);
            ^
  1424.   
  1425.   	CRYPTO_free_ex_data(CRYPTO_EX_INDEX_SSL_CTX, a, &a->ex_data);

ssl/ssl_sess.c:668:1: Parameter `s->sessions->num_nodes`
    666.   static IMPLEMENT_LHASH_DOALL_ARG_FN(timeout, SSL_SESSION *, TIMEOUT_PARAM *)
    667.   
    668. > void SSL_CTX_flush_sessions(SSL_CTX *s, long t)
    669.   	{
    670.   	unsigned long i;

ssl/ssl_sess.c:680:2: Call
    678.   	i=tp.cache->down_load;
    679.   	tp.cache->down_load=0;
    680.   	lh_doall_arg(tp.cache, LHASH_DOALL_ARG_FN(timeout), &tp);
            ^
    681.   	tp.cache->down_load=i;
    682.   	CRYPTO_w_unlock(CRYPTO_LOCK_SSL_CTX);

crypto/lhash/lhash.c:300:1: Parameter `lh->num_nodes`
      298.   	}
      299.   
      300. > void lh_doall_arg(LHASH *lh, LHASH_DOALL_ARG_FN_TYPE func, void *arg)
      301.   	{
      302.   	doall_util_fn(lh, 1, (LHASH_DOALL_FN_TYPE)0, func, arg);

crypto/lhash/lhash.c:302:2: Call
      300.   void lh_doall_arg(LHASH *lh, LHASH_DOALL_ARG_FN_TYPE func, void *arg)
      301.   	{
      302.   	doall_util_fn(lh, 1, (LHASH_DOALL_FN_TYPE)0, func, arg);
              ^
      303.   	}
      304.   

crypto/lhash/lhash.c:270:1: <LHS trace>
268.   	}
269.   
270. > static void doall_util_fn(LHASH *lh, int use_arg, LHASH_DOALL_FN_TYPE func,
271.   			  LHASH_DOALL_ARG_FN_TYPE func_arg, void *arg)
272.   	{

crypto/lhash/lhash.c:270:1: Parameter `lh->num_nodes`
        268.   	}
        269.   
        270. > static void doall_util_fn(LHASH *lh, int use_arg, LHASH_DOALL_FN_TYPE func,
        271.   			  LHASH_DOALL_ARG_FN_TYPE func_arg, void *arg)
        272.   	{

crypto/lhash/lhash.c:278:7: Binary operation: ([0, 8] - 1):unsigned32 by call to `SSL_CTX_free` 
        276.   	/* reverse the order so we search from 'top to bottom'
        277.   	 * We were having memory leaks otherwise */
        278.   	for (i=lh->num_nodes-1; i>=0; i--)
                     ^
        279.   		{
        280.   		a=lh->b[i];
