crypto/ec/ec_asn1.c:661: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned64 by call to `BN_to_ASN1_INTEGER`.
Showing all 9 steps of the trace


crypto/ec/ec_asn1.c:659:6: Call
657.   
658.   	/* set the cofactor (optional) */
659.   	if (EC_GROUP_get_cofactor(group, tmp, NULL))
            ^
660.   		{
661.   		ret->cofactor = BN_to_ASN1_INTEGER(tmp, ret->cofactor);

crypto/ec/ec_lib.c:330:7: Call
  328.   int EC_GROUP_get_cofactor(const EC_GROUP *group, BIGNUM *cofactor, BN_CTX *ctx)
  329.   	{
  330.   	if (!BN_copy(cofactor, &group->cofactor))
               ^
  331.   		return 0;
  332.   

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;

crypto/ec/ec_asn1.c:661:19: Call
659.   	if (EC_GROUP_get_cofactor(group, tmp, NULL))
660.   		{
661.   		ret->cofactor = BN_to_ASN1_INTEGER(tmp, ret->cofactor);
                         ^
662.   		if (ret->cofactor == NULL)
663.   			{

crypto/asn1/a_int.c:405:1: Parameter `bn->top`
  403.   	}
  404.   
  405. > ASN1_INTEGER *BN_to_ASN1_INTEGER(const BIGNUM *bn, ASN1_INTEGER *ai)
  406.   	{
  407.   	ASN1_INTEGER *ret;

crypto/asn1/a_int.c:422:4: Call
  420.   		ret->type = V_ASN1_NEG_INTEGER;
  421.   	else ret->type=V_ASN1_INTEGER;
  422.   	j=BN_num_bits(bn);
            ^
  423.   	len=((j == 0)?0:((j/8)+1));
  424.   	if (ret->length < len+4)

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