crypto/dsa/dsa_ossl.c:189: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned32 by call to `BN_mod_mul`.
Showing all 22 steps of the trace


crypto/dsa/dsa_ossl.c:163:8: Call
161.   	if ((dsa->kinv == NULL) || (dsa->r == NULL))
162.   		{
163.   		if (!dsa_sign_setup(dsa,ctx,&kinv,&r,dgst,dlen))
              ^
164.   			goto err;
165.   		}

crypto/dsa/dsa_ossl.c:228:1: Parameter `ctx_in->stack.depth`
  226.   }
  227.   
  228. > static int dsa_sign_setup(DSA *dsa, BN_CTX *ctx_in,
  229.   				      BIGNUM **kinvp, BIGNUM **rp,
  230.   				      const unsigned char *dgst, int dlen)

crypto/dsa/dsa_ossl.c:185:7: Call
183.   
184.   	/* Compute  s = inv(k) (m + xr) mod q */
185.   	if (!BN_mod_mul(xr,dsa->priv_key,r,dsa->q,ctx)) goto err;/* s = xr */
             ^
186.   	if (!BN_add(s, xr, m)) goto err;		/* s = m + xr */
187.   	if (BN_cmp(s,dsa->q) > 0)

crypto/bn/bn_mod.c:180:1: Parameter `ctx->stack.depth`
  178.   
  179.   /* slow but works */
  180. > int BN_mod_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m,
  181.   	BN_CTX *ctx)
  182.   	{

crypto/bn/bn_mod.c:190:2: Call
  188.   	bn_check_top(m);
  189.   
  190.   	BN_CTX_start(ctx);
          ^
  191.   	if ((t = BN_CTX_get(ctx)) == NULL) goto err;
  192.   	if (a == b)

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

crypto/bn/bn_mod.c:200:2: Call
  198.   	ret=1;
  199.   err:
  200.   	BN_CTX_end(ctx);
          ^
  201.   	return(ret);
  202.   	}

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

crypto/dsa/dsa_ossl.c:189:7: Call
187.   	if (BN_cmp(s,dsa->q) > 0)
188.   		if (!BN_sub(s,s,dsa->q)) goto err;
189.   	if (!BN_mod_mul(s,s,kinv,dsa->q,ctx)) goto err;
             ^
190.   
191.   	ret=DSA_SIG_new();

crypto/bn/bn_mod.c:180:1: Parameter `ctx->stack.depth`
  178.   
  179.   /* slow but works */
  180. > int BN_mod_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m,
  181.   	BN_CTX *ctx)
  182.   	{

crypto/bn/bn_mod.c:190:2: Call
  188.   	bn_check_top(m);
  189.   
  190.   	BN_CTX_start(ctx);
          ^
  191.   	if ((t = BN_CTX_get(ctx)) == NULL) goto err;
  192.   	if (a == b)

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

crypto/bn/bn_mod.c:195:10: Call
  193.   		{ if (!BN_sqr(t,a,ctx)) goto err; }
  194.   	else
  195.   		{ if (!BN_mul(t,a,b,ctx)) goto err; }
                  ^
  196.   	if (!BN_nnmod(r,t,m,ctx)) goto err;
  197.   	bn_check_top(r);

crypto/bn/bn_mul.c:898:1: Parameter `ctx->stack.depth`
    896.   #endif /* BN_RECURSION */
    897.   
    898. > int BN_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
    899.   	{
    900.   	int ret=0;

crypto/bn/bn_mul.c:925:2: Call
    923.   	top=al+bl;
    924.   
    925.   	BN_CTX_start(ctx);
            ^
    926.   	if ((r == a) || (r == b))
    927.   		{

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

crypto/bn/bn_mul.c:1051:2: Call
    1049.   err:
    1050.   	bn_check_top(r);
    1051.   	BN_CTX_end(ctx);
             ^
    1052.   	return(ret);
    1053.   	}

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

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

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

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

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