engines/ccgost/gost_sign.c:319: error: INTEGER_OVERFLOW_L2
  ([0, `bn->top`] - 1):unsigned64 by call to `BN_bn2bin`.
Showing all 9 steps of the trace


engines/ccgost/gost_sign.c:314:1: Parameter `bn->top`
312.   /* Pack bignum into byte buffer of given size, filling all leading bytes
313.    * by zeros */
314. > int store_bignum(BIGNUM *bn, unsigned char *buf,int len)
315.   	{
316.   	int bytes = BN_num_bytes(bn);

engines/ccgost/gost_sign.c:316:14: Call
314.   int store_bignum(BIGNUM *bn, unsigned char *buf,int len)
315.   	{
316.   	int bytes = BN_num_bytes(bn);
                    ^
317.   	if (bytes>len) return 0;
318.   	memset(buf,0,len);

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;

engines/ccgost/gost_sign.c:319:2: Call
317.   	if (bytes>len) return 0;
318.   	memset(buf,0,len);
319.   	BN_bn2bin(bn,buf+len-bytes);
        ^
320.   	return 1;
321.   	}	

crypto/bn/bn_lib.c:641:1: Parameter `a->top`
  639.   
  640.   /* ignore negative */
  641. > int BN_bn2bin(const BIGNUM *a, unsigned char *to)
  642.   	{
  643.   	int n,i;

crypto/bn/bn_lib.c:647:6: Call
  645.   
  646.   	bn_check_top(a);
  647.   	n=i=BN_num_bytes(a);
              ^
  648.   	while (i--)
  649.   		{

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, bn->top] - 1):unsigned64 by call to `BN_bn2bin` 
    248.   int BN_num_bits(const BIGNUM *a)
    249.   	{
    250.   	int i = a->top - 1;
            ^
    251.   	bn_check_top(a);
    252.   
