crypto/ec/ec_ameth.c:574: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned64 by call to `i2d_ECPrivateKey`.
Showing all 6 steps of the trace


crypto/ec/ec_ameth.c:574:9: Call
572.   static int old_ec_priv_encode(const EVP_PKEY *pkey, unsigned char **pder)
573.   	{
574.   	return i2d_ECPrivateKey(pkey->pkey.ec, pder);
               ^
575.   	}
576.   

crypto/ec/ec_asn1.c:1210:1: Parameter `a->priv_key->top`
  1208.   	}
  1209.   
  1210. > int	i2d_ECPrivateKey(EC_KEY *a, unsigned char **out)
  1211.   	{
  1212.   	int             ret=0, ok=0;

crypto/ec/ec_asn1.c:1233:20: Call
  1231.   	priv_key->version = a->version;
  1232.   
  1233.   	buf_len = (size_t)BN_num_bytes(a->priv_key);
                             ^
  1234.   	buffer = OPENSSL_malloc(buf_len);
  1235.   	if (buffer == NULL)

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