engines/e_cswift.c:887: error: INTEGER_OVERFLOW_L2
  ([0, `dsa->p->top`] - 1):unsigned64 by call to `BN_num_bits`.
Showing all 9 steps of the trace


engines/e_cswift.c:808:1: Parameter `dsa->p->top`
806.   
807.   #ifndef OPENSSL_NO_DSA
808. > static DSA_SIG *cswift_dsa_sign(const unsigned char *dgst, int dlen, DSA *dsa)
809.   	{
810.   	SW_CONTEXT_HANDLE hac;

engines/e_cswift.c:854:29: Call
852.   		}
853.   	sw_param.type = SW_ALG_DSA;
854.   	sw_param.up.dsa.p.nbytes = BN_bn2bin(dsa->p,
                                   ^
855.   				(unsigned char *)dsa_p->d);
856.   	sw_param.up.dsa.p.value = (unsigned char *)dsa_p->d;

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: Parameter `a->top`
    246.   	}
    247.   
    248. > int BN_num_bits(const BIGNUM *a)
    249.   	{
    250.   	int i = a->top - 1;

engines/e_cswift.c:887:15: Call
885.   	arg.nbytes = dlen;
886.   	arg.value = (unsigned char *)dgst;
887.   	res.nbytes = BN_num_bytes(dsa->p);
                     ^
888.   	memset(result->d, 0, res.nbytes);
889.   	res.value = (unsigned char *)result->d;

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, dsa->p->top] - 1):unsigned64 by call to `BN_num_bits` 
  248.   int BN_num_bits(const BIGNUM *a)
  249.   	{
  250.   	int i = a->top - 1;
          ^
  251.   	bn_check_top(a);
  252.   
