crypto/ecdsa/ecdsatest.c:171: error: INTEGER_OVERFLOW_L2
  ([0, 1] - 1):unsigned64 by call to `BN_bn2bin`.
Showing all 10 steps of the trace


crypto/ecdsa/ecdsatest.c:162:8: Call
160.   	if (fbytes_counter >= 8)
161.   		return 0;
162.   	tmp = BN_new();
              ^
163.   	if (!tmp)
164.   		return 0;

crypto/bn/bn_lib.c:308:2: Assignment
  306.   		}
  307.   	ret->flags=BN_FLG_MALLOCED;
  308.   	ret->top=0;
          ^
  309.   	ret->neg=0;
  310.   	ret->dmax=0;

crypto/ecdsa/ecdsatest.c:165:7: Call
163.   	if (!tmp)
164.   		return 0;
165.   	if (!BN_dec2bn(&tmp, numbers[fbytes_counter]))
             ^
166.   		{
167.   		BN_free(tmp);

crypto/bn/bn_print.c:239:1: Parameter `(*bn)->top`
  237.   	}
  238.   
  239. > int BN_dec2bn(BIGNUM **bn, const char *a)
  240.   	{
  241.   	BIGNUM *ret=NULL;

crypto/ecdsa/ecdsatest.c:171:8: Call
169.   		}
170.   	fbytes_counter ++;
171.   	ret = BN_bn2bin(tmp, buf);	
              ^
172.   	if (ret == 0 || ret != num)
173.   		ret = 0;

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, 1] - 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.   
