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


engines/ccgost/gost_sign.c:168:2: Call
166.   		BN_one(md);
167.   		}
168.   	BN_copy(q2,dsa->q);
        ^
169.   	BN_sub_word(q2,2);
170.   	BN_mod_exp(v,md,q2,dsa->q,ctx);

crypto/bn/bn_lib.c:497:1: Parameter `a->top`
  495.   	}
  496.   
  497. > BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b)
  498.   	{
  499.   	int i;

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

crypto/bn/bn_word.c:178:1: Parameter `a->top`
  176.   	}
  177.   
  178. > int BN_sub_word(BIGNUM *a, BN_ULONG w)
  179.   	{
  180.   	int i;

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

crypto/bn/bn_exp.c:163:1: Parameter `p->top`
  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:727:1: Parameter `p->top`
    725.   	}
    726.   
    727. > int BN_mod_exp_mont_word(BIGNUM *rr, BN_ULONG a, const BIGNUM *p,
    728.                            const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *in_mont)
    729.   	{

crypto/bn/bn_exp.c:769:9: Call
    767.   		a %= m->d[0]; /* make sure that 'a' is reduced */
    768.   
    769.   	bits = BN_num_bits(p);
                   ^
    770.   	if (bits == 0)
    771.   		{

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_mod_exp` 
      248.   int BN_num_bits(const BIGNUM *a)
      249.   	{
      250.   	int i = a->top - 1;
              ^
      251.   	bn_check_top(a);
      252.   
