crypto/dsa/dsa_gen.c:561: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned32 by call to `BN_div`.
Showing all 16 steps of the trace


crypto/dsa/dsa_gen.c:453:2: Call
451.   		goto err;
452.   
453.   	BN_CTX_start(ctx);
        ^
454.   	r0 = BN_CTX_get(ctx);
455.   	g = BN_CTX_get(ctx);

crypto/bn/bn_ctx.c:257:1: Parameter `ctx->stack.depth`
  255.   	}
  256.   
  257. > void BN_CTX_start(BN_CTX *ctx)
  258.   	{
  259.   	CTXDBG_ENTRY("BN_CTX_start", ctx);

crypto/dsa/dsa_gen.c:495:8: Call
493.   
494.   			/* step 4 */
495.   			r = BN_is_prime_fasttest_ex(q, DSS_prime_checks, ctx,
              ^
496.   					seed_in ? 1 : 0, cb);
497.   			if (r > 0)

crypto/bn/bn_prime.c:243:1: Parameter `ctx_passed->stack.depth`
  241.   	}
  242.   
  243. > int BN_is_prime_fasttest_ex(const BIGNUM *a, int checks, BN_CTX *ctx_passed,
  244.   		int do_trial_division, BN_GENCB *cb)
  245.   	{

crypto/dsa/dsa_gen.c:561:9: Call
559.   			/* step 9 */
560.   			if (!BN_lshift1(r0,q)) goto err;
561.   			if (!BN_mod(c,X,r0,ctx)) goto err;
               ^
562.   			if (!BN_sub(r0,c,BN_value_one())) goto err;
563.   			if (!BN_sub(p,X,r0)) goto err;

crypto/bn/bn_div.c:181:1: Parameter `ctx->stack.depth`
  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.   	{

crypto/bn/bn_div.c:203:10: Call
  201.   	if ((BN_get_flags(num, BN_FLG_CONSTTIME) != 0) || (BN_get_flags(divisor, BN_FLG_CONSTTIME) != 0))
  202.   		{
  203.   		return BN_div_no_branch(dv, rm, num, divisor, ctx);
                  ^
  204.   		}
  205.   

crypto/bn/bn_div.c:426:1: Parameter `ctx->stack.depth`
    424.    * branches that may leak sensitive information.
    425.    */
    426. > static int BN_div_no_branch(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, 
    427.   	const BIGNUM *divisor, BN_CTX *ctx)
    428.   	{

crypto/bn/bn_div.c:446:2: Call
    444.   		}
    445.   
    446.   	BN_CTX_start(ctx);
            ^
    447.   	tmp=BN_CTX_get(ctx);
    448.   	snum=BN_CTX_get(ctx);

crypto/bn/bn_ctx.c:257:1: Parameter `ctx->stack.depth`
      255.   	}
      256.   
      257. > void BN_CTX_start(BN_CTX *ctx)
      258.   	{
      259.   	CTXDBG_ENTRY("BN_CTX_start", ctx);

crypto/bn/bn_div.c:642:2: Call
    640.   		}
    641.   	bn_correct_top(res);
    642.   	BN_CTX_end(ctx);
            ^
    643.   	return(1);
    644.   err:

crypto/bn/bn_ctx.c:272:1: Parameter `ctx->stack.depth`
      270.   	}
      271.   
      272. > void BN_CTX_end(BN_CTX *ctx)
      273.   	{
      274.   	CTXDBG_ENTRY("BN_CTX_end", ctx);

crypto/bn/bn_ctx.c:279:21: Call
      277.   	else
      278.   		{
      279.   		unsigned int fp = BN_STACK_pop(&ctx->stack);
                                 ^
      280.   		/* Does this stack frame have anything to release? */
      281.   		if(fp < ctx->used)

crypto/bn/bn_ctx.c:353:1: <LHS trace>
351.   	}
352.   
353. > static unsigned int BN_STACK_pop(BN_STACK *st)
354.   	{
355.   	return st->indexes[--(st->depth)];

crypto/bn/bn_ctx.c:353:1: Parameter `st->depth`
        351.   	}
        352.   
        353. > static unsigned int BN_STACK_pop(BN_STACK *st)
        354.   	{
        355.   	return st->indexes[--(st->depth)];

crypto/bn/bn_ctx.c:355:9: Binary operation: ([0, +oo] - 1):unsigned32 by call to `BN_div` 
        353.   static unsigned int BN_STACK_pop(BN_STACK *st)
        354.   	{
        355.   	return st->indexes[--(st->depth)];
                       ^
        356.   	}
        357.   
