engines/ccgost/gost_sign.c:170: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned32 by call to `BN_mod_mul`.
Showing all 22 steps of the trace


engines/ccgost/gost_sign.c:144:2: Call
142.   	BN_CTX *ctx = BN_CTX_new();
143.   
144.   	BN_CTX_start(ctx);
        ^
145.   	if (BN_cmp(sig->s,dsa->q)>=1||
146.   		BN_cmp(sig->r,dsa->q)>=1)

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

engines/ccgost/gost_sign.c:162:2: Call
160.   	u = BN_CTX_get(ctx);
161.   	
162.   	BN_mod(tmp,md,dsa->q,ctx);
        ^
163.   	if (BN_is_zero(tmp))
164.   		{

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.   	{

engines/ccgost/gost_sign.c:169:2: Call
167.   	BN_copy(q2,dsa->q);
168.   	BN_sub_word(q2,2);
169.   	BN_mod_exp(v,md,q2,dsa->q,ctx);
        ^
170.   	BN_mod_mul(z1,sig->s,v,dsa->q,ctx);
171.   	BN_sub(tmp,dsa->q,sig->r);

crypto/bn/bn_exp.c:163:1: Parameter `ctx->stack.depth`
  161.   
  162.   
  163. > int BN_mod_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m,
  164.   	       BN_CTX *ctx)
  165.   	{

crypto/bn/bn_exp.c:219:8: Call
  217.   			{
  218.   			BN_ULONG A = a->d[0];
  219.   			ret=BN_mod_exp_mont_word(r,A,p,m,ctx,NULL);
                ^
  220.   			}
  221.   		else

crypto/bn/bn_exp.c:724:1: Parameter `ctx->stack.depth`
    722.   	}
    723.   
    724. > int BN_mod_exp_mont_word(BIGNUM *rr, BN_ULONG a, const BIGNUM *p,
    725.                            const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *in_mont)
    726.   	{

engines/ccgost/gost_sign.c:170:2: Call
168.   	BN_sub_word(q2,2);
169.   	BN_mod_exp(v,md,q2,dsa->q,ctx);
170.   	BN_mod_mul(z1,sig->s,v,dsa->q,ctx);
        ^
171.   	BN_sub(tmp,dsa->q,sig->r);
172.   	BN_mod_mul(z2,tmp,v,dsa->p,ctx);

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

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

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

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

crypto/bn/bn_mul.c:941:1: Parameter `ctx->stack.depth`
    939.   #endif /* BN_RECURSION */
    940.   
    941. > int BN_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
    942.   	{
    943.   	int ret=0;

crypto/bn/bn_mul.c:972:2: Call
    970.   	top=al+bl;
    971.   
    972.   	BN_CTX_start(ctx);
            ^
    973.   	if ((r == a) || (r == b))
    974.   		{

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

crypto/bn/bn_mul.c:1098:2: Call
    1096.   err:
    1097.   	bn_check_top(r);
    1098.   	BN_CTX_end(ctx);
             ^
    1099.   	return(ret);
    1100.   	}

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

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

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

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

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