engines/ccgost/gost_pmeth.c:327: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned64 by call to `pack_sign_cp`.
Showing all 12 steps of the trace


engines/ccgost/gost_pmeth.c:322:17: Call
320.   		return 1;
321.   		}	
322.   	unpacked_sig = gost2001_do_sign(tbs,tbs_len,EVP_PKEY_get0(pkey));
                       ^
323.   	if (!unpacked_sig)
324.   		{

engines/ccgost/gost2001.c:141:9: Call
  139.   				goto err;
  140.   				}	
  141.   			if (!EC_POINT_mul(group,C,k,NULL,NULL,ctx))
                 ^
  142.   				{
  143.   				GOSTerr(GOST_F_GOST2001_DO_SIGN,ERR_R_EC_LIB);

crypto/ec/ec_lib.c:1139:9: Call
    1137.   	scalars[0] = p_scalar;
    1138.   
    1139.   	return EC_POINTs_mul(group, r, g_scalar, (point != NULL && p_scalar != NULL), points, scalars, ctx);
                    ^
    1140.   	}
    1141.   

crypto/ec/ec_lib.c:1118:1: Parameter `(*scalars)->top`
      1116.    */
      1117.   
      1118. > int EC_POINTs_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar,
      1119.   	size_t num, const EC_POINT *points[], const BIGNUM *scalars[], BN_CTX *ctx)
      1120.   	{

engines/ccgost/gost_pmeth.c:327:9: Call
325.   		return 0;
326.   		}
327.   	return pack_sign_cp(unpacked_sig,32,sig,siglen);
               ^
328.   	}
329.   

engines/ccgost/gost_sign.c:119:1: Parameter `s->s->top`
  117.    * and frees up DSA_SIG structure
  118.    */
  119. > int pack_sign_cp(DSA_SIG *s,int order,unsigned char *sig, size_t *siglen)
  120.   	{
  121.   	*siglen = 2*order;

engines/ccgost/gost_sign.c:123:2: Call
  121.   	*siglen = 2*order;
  122.   	memset(sig,0,*siglen);
  123.   	store_bignum(s->s, sig, order);
          ^
  124.   	store_bignum(s->r, sig+order,order);
  125.   	dump_signature("serialized",sig,*siglen);

engines/ccgost/gost_sign.c:314:1: Parameter `bn->top`
    312.   /* Pack bignum into byte buffer of given size, filling all leading bytes
    313.    * by zeros */
    314. > int store_bignum(BIGNUM *bn, unsigned char *buf,int len)
    315.   	{
    316.   	int bytes = BN_num_bytes(bn);

engines/ccgost/gost_sign.c:316:14: Call
    314.   int store_bignum(BIGNUM *bn, unsigned char *buf,int len)
    315.   	{
    316.   	int bytes = BN_num_bytes(bn);
                        ^
    317.   	if (bytes>len) return 0;
    318.   	memset(buf,0,len);

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