engines/ccgost/gost2001.c:326: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned64 by call to `BN_rand_range`.
Showing all 11 steps of the trace


engines/ccgost/gost2001.c:322:2: Call
320.   	BIGNUM *order = BN_new(),*d=BN_new();
321.   	const EC_GROUP *group = EC_KEY_get0_group(ec);
322.   	EC_GROUP_get_order(group,order,NULL);
        ^
323.   	
324.   	do 

crypto/ec/ec_lib.c:321:7: Call
  319.   int EC_GROUP_get_order(const EC_GROUP *group, BIGNUM *order, BN_CTX *ctx)
  320.   	{
  321.   	if (!BN_copy(order, &group->order))
               ^
  322.   		return 0;
  323.   

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/gost2001.c:326:8: Call
324.   	do 
325.   		{
326.   		if (!BN_rand_range(d,order)) 
              ^
327.   			{
328.   			GOSTerr(GOST_F_GOST2001_KEYGEN,GOST_R_RANDOM_NUMBER_GENERATOR_FAILED);

crypto/bn/bn_rand.c:298:1: Parameter `r->top`
  296.   
  297.   
  298. > int	BN_rand_range(BIGNUM *r, const BIGNUM *range)
  299.   	{
  300.   	return bn_rand_range(0, r, range);

crypto/bn/bn_rand.c:300:9: Call
  298.   int	BN_rand_range(BIGNUM *r, const BIGNUM *range)
  299.   	{
  300.   	return bn_rand_range(0, r, range);
                 ^
  301.   	}
  302.   

crypto/bn/bn_rand.c:230:1: Parameter `r->top`
    228.   
    229.   /* random number r:  0 <= r < range */
    230. > static int bn_rand_range(int pseudo, BIGNUM *r, const BIGNUM *range)
    231.   	{
    232.   	int (*bn_rand)(BIGNUM *, size_t, int, int)

crypto/bn/bn_rand.c:290:10: Call
    288.   				}
    289.   			}
    290.   		while (BN_cmp(r, range) >= 0);
                    ^
    291.   		}
    292.   

crypto/bn/bn_lib.c:678:1: <LHS trace>
676.   	}
677.   
678. > int BN_cmp(const BIGNUM *a, const BIGNUM *b)
679.   	{
680.   	int i;

crypto/bn/bn_lib.c:678:1: Parameter `a->top`
      676.   	}
      677.   
      678. > int BN_cmp(const BIGNUM *a, const BIGNUM *b)
      679.   	{
      680.   	int i;

crypto/bn/bn_lib.c:709:7: Binary operation: ([0, +oo] - 1):unsigned64 by call to `BN_rand_range` 
      707.   	if (a->top > b->top) return(gt);
      708.   	if (a->top < b->top) return(lt);
      709.   	for (i=a->top-1; i>=0; i--)
                   ^
      710.   		{
      711.   		t1=a->d[i];
