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


crypto/dsa/dsa_gen.c:132:2: Call
130.   	if ((mont=BN_MONT_CTX_new()) == NULL) goto err;
131.   
132.   	BN_CTX_start(ctx);
        ^
133.   	r0 = BN_CTX_get(ctx);
134.   	g = BN_CTX_get(ctx);

crypto/bn/bn_ctx.c:251:1: Parameter `ctx->stack.depth`
  249.   	}
  250.   
  251. > void BN_CTX_start(BN_CTX *ctx)
  252.   	{
  253.   	CTXDBG_ENTRY("BN_CTX_start", ctx);

crypto/dsa/dsa_gen.c:186:8: Call
184.   
185.   			/* step 4 */
186.   			r = BN_is_prime_fasttest_ex(q, DSS_prime_checks, ctx,
              ^
187.   					seed_is_random, cb);
188.   			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:240:9: Call
238.   			/* step 9 */
239.   			if (!BN_lshift1(r0,q)) goto err;
240.   			if (!BN_mod(c,X,r0,ctx)) goto err;
               ^
241.   			if (!BN_sub(r0,c,BN_value_one())) goto err;
242.   			if (!BN_sub(p,X,r0)) goto err;

crypto/bn/bn_div.c:179:1: Parameter `ctx->stack.depth`
  177.    * If 'dv' or 'rm' is NULL, the respective value is not returned.
  178.    */
  179. > int BN_div(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor,
  180.   	   BN_CTX *ctx)
  181.   	{

crypto/bn/bn_div.c:209:2: Call
  207.   		}
  208.   
  209.   	BN_CTX_start(ctx);
          ^
  210.   	tmp=BN_CTX_get(ctx);
  211.   	snum=BN_CTX_get(ctx);

crypto/bn/bn_ctx.c:251:1: Parameter `ctx->stack.depth`
    249.   	}
    250.   
    251. > void BN_CTX_start(BN_CTX *ctx)
    252.   	{
    253.   	CTXDBG_ENTRY("BN_CTX_start", ctx);

crypto/bn/bn_div.c:394:2: Call
  392.   		bn_check_top(rm);
  393.   		}
  394.   	BN_CTX_end(ctx);
          ^
  395.   	return(1);
  396.   err:

crypto/bn/bn_ctx.c:267:1: Parameter `ctx->stack.depth`
    265.   	}
    266.   
    267. > void BN_CTX_end(BN_CTX *ctx)
    268.   	{
    269.   	CTXDBG_ENTRY("BN_CTX_end", ctx);

crypto/bn/bn_ctx.c:274:21: Call
    272.   	else
    273.   		{
    274.   		unsigned int fp = BN_STACK_pop(&ctx->stack);
                               ^
    275.   		/* Does this stack frame have anything to release? */
    276.   		if(fp < ctx->used)

crypto/bn/bn_ctx.c:348:1: <LHS trace>
346.   	}
347.   
348. > static unsigned int BN_STACK_pop(BN_STACK *st)
349.   	{
350.   	return st->indexes[--(st->depth)];

crypto/bn/bn_ctx.c:348:1: Parameter `st->depth`
      346.   	}
      347.   
      348. > static unsigned int BN_STACK_pop(BN_STACK *st)
      349.   	{
      350.   	return st->indexes[--(st->depth)];

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