apps/x509.c:730: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned64 by call to `BN_to_ASN1_INTEGER`.
Showing all 11 steps of the trace


apps/x509.c:725:13: Call
723.   				ASN1_INTEGER *ser;
724.   				ser = X509_get_serialNumber(x);
725.   				bnser = ASN1_INTEGER_to_BN(ser, NULL);
                   ^
726.   				if (!bnser)
727.   					goto end;

crypto/asn1/a_int.c:451:11: Call
  449.   	BIGNUM *ret;
  450.   
  451.   	if ((ret=BN_bin2bn(ai->data,ai->length,bn)) == NULL)
                   ^
  452.   		ASN1err(ASN1_F_ASN1_INTEGER_TO_BN,ASN1_R_BN_LIB);
  453.   	else if(ai->type == V_ASN1_NEG_INTEGER)

crypto/bn/bn_lib.c:597:1: Parameter `ret->top`
    595.   	}
    596.   
    597. > BIGNUM *BN_bin2bn(const unsigned char *s, size_t len, BIGNUM *ret)
    598.   	{
    599.   	unsigned int i,m;

apps/x509.c:728:10: Call
726.   				if (!bnser)
727.   					goto end;
728.   				if (!BN_add_word(bnser, 1))
                ^
729.   					goto end;
730.   				ser = BN_to_ASN1_INTEGER(bnser, NULL);

crypto/bn/bn_word.c:126:1: Parameter `a->top`
  124.   	}
  125.   
  126. > int BN_add_word(BIGNUM *a, BN_ULONG w)
  127.   	{
  128.   	BN_ULONG l;

apps/x509.c:730:11: Call
728.   				if (!BN_add_word(bnser, 1))
729.   					goto end;
730.   				ser = BN_to_ASN1_INTEGER(bnser, NULL);
                 ^
731.   				if (!ser)
732.   					goto end;

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.   
