apps/dsaparam.c:362: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned64 by call to `BN_num_bits`.
Showing all 8 steps of the trace


apps/dsaparam.c:321:14: Call
319.   	}
320.   #endif
321.   	        if(!DSA_generate_parameters_ex(dsa,num,NULL,0,NULL,NULL, &cb))
                    ^
322.   			{
323.   #ifdef GENCB_TEST

crypto/dsa/dsa_gen.c:107:10: Call
  105.   			}
  106.   
  107.   		return dsa_builtin_paramgen(ret, bits, qbits, evpmd,
                  ^
  108.   				seed_in, seed_len, counter_ret, h_ret, cb);
  109.   		}

crypto/dsa/dsa_gen.c:275:9: Call
    273.   			/* step 9 */
    274.   			if (!BN_lshift1(r0,q)) goto err;
    275.   			if (!BN_mod(c,X,r0,ctx)) goto err;
                   ^
    276.   			if (!BN_sub(r0,c,BN_value_one())) goto err;
    277.   			if (!BN_sub(p,X,r0)) goto err;

crypto/bn/bn_div.c:181:1: Parameter `dv->top`
      179.   static int BN_div_no_branch(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num,
      180.           const BIGNUM *divisor, BN_CTX *ctx);
      181. > int BN_div(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor,
      182.   	   BN_CTX *ctx)
      183.   	{

apps/dsaparam.c:362:7: Call
360.   		int l,len,bits_p,bits_q,bits_g;
361.   
362.   		len=BN_num_bytes(dsa->p);
             ^
363.   		bits_p=BN_num_bits(dsa->p);
364.   		bits_q=BN_num_bits(dsa->q);

crypto/bn/bn_lib.c:248:1: <LHS trace>
246.   	}
247.   
248. > int BN_num_bits(const BIGNUM *a)
249.   	{
250.   	int i = a->top - 1;

crypto/bn/bn_lib.c:248:1: Parameter `a->top`
  246.   	}
  247.   
  248. > int BN_num_bits(const BIGNUM *a)
  249.   	{
  250.   	int i = a->top - 1;

crypto/bn/bn_lib.c:250:2: Binary operation: ([0, +oo] - 1):unsigned64 by call to `BN_num_bits` 
  248.   int BN_num_bits(const BIGNUM *a)
  249.   	{
  250.   	int i = a->top - 1;
          ^
  251.   	bn_check_top(a);
  252.   
