engines/ccgost/gost_ameth.c:342: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned64 by call to `BN_to_ASN1_INTEGER`.
Showing all 9 steps of the trace


engines/ccgost/gost_ameth.c:333:24: Call
331.   	{
332.   	ASN1_OBJECT *algobj = OBJ_nid2obj(EVP_PKEY_base_id(pk));
333.   	ASN1_STRING *params = encode_gost_algor_params(pk);
                              ^
334.   	unsigned char *priv_buf = NULL;
335.   	int priv_len;

engines/ccgost/gost_ameth.c:58:27: Call
  56.   			break;
  57.   		case NID_id_GostR3410_94:
  58.   			pkey_param_nid = (int) gost94_nid_by_params(EVP_PKEY_get0((EVP_PKEY *)key));
                                  ^
  59.   			if (pkey_param_nid == NID_undef) 
  60.   				{

engines/ccgost/gost_ameth.c:20:1: Parameter `p->q->top`
    18.   #include "e_gost_err.h"
    19.   
    20. > int gost94_nid_by_params(DSA *p) 
    21.   	{
    22.   	R3410_params *gost_params;

engines/ccgost/gost_ameth.c:342:12: Call
340.   		return 0;
341.   		}
342.   	asn1key = BN_to_ASN1_INTEGER(gost_get0_priv_key(pk),NULL);
                  ^
343.   	priv_len = i2d_ASN1_INTEGER(asn1key,&priv_buf);
344.   	ASN1_INTEGER_free(asn1key);

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.   
