crypto/asn1/a_enum.c:167: error: INTEGER_OVERFLOW_L2
  ([0, `bn->top`] - 1):unsigned64 by call to `BN_bn2bin`.
Showing all 9 steps of the trace


crypto/asn1/a_enum.c:138:1: Parameter `bn->top`
136.   	}
137.   
138. > ASN1_ENUMERATED *BN_to_ASN1_ENUMERATED(BIGNUM *bn, ASN1_ENUMERATED *ai)
139.   	{
140.   	ASN1_ENUMERATED *ret;

crypto/asn1/a_enum.c:154:4: Call
152.   	if(BN_is_negative(bn)) ret->type = V_ASN1_NEG_ENUMERATED;
153.   	else ret->type=V_ASN1_ENUMERATED;
154.   	j=BN_num_bits(bn);
          ^
155.   	len=((j == 0)?0:((j/8)+1));
156.   	if (ret->length < len+4)

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/asn1/a_enum.c:167:14: Call
165.   		}
166.   
167.   	ret->length=BN_bn2bin(bn,ret->data);
                    ^
168.   	return(ret);
169.   err:

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, bn->top] - 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.   
