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


crypto/ec/ec_ameth.c:322:7: Call
320.   	ec_key = pkey->pkey.ec;
321.   
322.   	if (!eckey_param2type(&ptype, &pval, ec_key))
             ^
323.   		{
324.   		ECerr(EC_F_ECKEY_PRIV_ENCODE, EC_R_DECODE_ERROR);

crypto/ec/ec_ameth.c:90:18: Call
  88.   		if (!pstr)
  89.   			return 0;
  90.   		pstr->length = i2d_ECParameters(ec_key, &pstr->data);
                         ^
  91.   		if (pstr->length < 0)
  92.   			{

crypto/ec/ec_asn1.c:1327:9: Call
    1325.   		return 0;
    1326.   		}
    1327.   	return i2d_ECPKParameters(a->group, out);
                    ^
    1328.   	}
    1329.   

crypto/ec/ec_asn1.c:1084:24: Call
      1082.   	{
      1083.   	int		ret=0;
      1084.   	ECPKPARAMETERS	*tmp = ec_asn1_group2pkparameters(a, NULL);
                                     ^
      1085.   	if (tmp == NULL)
      1086.   		{

crypto/ec/ec_asn1.c:727:32: Call
        725.   		/* use the ECPARAMETERS structure */
        726.   		ret->type = 1;
        727.   		if ((ret->value.parameters = ec_asn1_group2parameters(
                                              ^
        728.   		     group, NULL)) == NULL)
        729.   			ok = 0;

crypto/ec/ec_asn1.c:574:13: Call
          572.   	point_conversion_form_t form;
          573.   
          574.   	if ((tmp = BN_new()) == NULL)
                             ^
          575.   		{
          576.   		ECerr(EC_F_EC_ASN1_GROUP2PARAMETERS, ERR_R_MALLOC_FAILURE);

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/ec/ec_ameth.c:335:10: Call
333.   	tmp_flags = old_flags | EC_PKEY_NO_PARAMETERS;
334.   	EC_KEY_set_enc_flags(ec_key, tmp_flags);
335.   	eplen = i2d_ECPrivateKey(ec_key, NULL);
                ^
336.   	if (!eplen)
337.   	{

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.   
