engines/e_ubsec.c:594: error: INTEGER_OVERFLOW_L2
  ([0, `a->top`] - 1):unsigned64 by call to `BN_mod_exp`.
Showing all 13 steps of the trace


engines/e_ubsec.c:556:1: Parameter `a->top`
554.   	}
555.   
556. > static int ubsec_mod_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
557.   		const BIGNUM *m, BN_CTX *ctx)
558.   	{

engines/e_ubsec.c:587:59: Call
585.   	}
586.   
587.   	if (p_UBSEC_rsa_mod_exp_ioctl(fd, (unsigned char *)a->d, BN_num_bits(a),
                                                                 ^
588.   		(unsigned char *)m->d, BN_num_bits(m), (unsigned char *)p->d, 
589.   		BN_num_bits(p), (unsigned char *)r->d, &y_len) != 0)

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_ubsec.c:594:24: Call
592.                   p_UBSEC_ubsec_close(fd);
593.   
594.                   return BN_mod_exp(r, a, p, m, ctx);
                              ^
595.   	}
596.   

crypto/bn/bn_exp.c:163:1: Parameter `a->top`
  161.   
  162.   
  163. > int BN_mod_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m,
  164.   	       BN_CTX *ctx)
  165.   	{

crypto/bn/bn_exp.c:223:8: Call
  221.   		else
  222.   #  endif
  223.   			ret=BN_mod_exp_mont(r,a,p,m,ctx,NULL);
                ^
  224.   		}
  225.   	else

crypto/bn/bn_exp.c:371:1: Parameter `a->top`
    369.   
    370.   
    371. > int BN_mod_exp_mont(BIGNUM *rr, const BIGNUM *a, const BIGNUM *p,
    372.   		    const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *in_mont)
    373.   	{

crypto/bn/bn_exp.c:384:10: Call
    382.   	if (BN_get_flags(p, BN_FLG_CONSTTIME) != 0)
    383.   		{
    384.   		return BN_mod_exp_mont_consttime(rr, a, p, m, ctx, in_mont);
                    ^
    385.   		}
    386.   

crypto/bn/bn_exp.c:574:1: Parameter `a->top`
      572.    * http://www.daemonology.net/hyperthreading-considered-harmful/)
      573.    */
      574. > int BN_mod_exp_mont_consttime(BIGNUM *rr, const BIGNUM *a, const BIGNUM *p,
      575.   		    const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *in_mont)
      576.   	{

crypto/bn/bn_exp.c:648:16: Call
      646.   	if (computeTemp==NULL || am==NULL) goto err;
      647.   
      648.   	if (a->neg || BN_ucmp(a,m) >= 0)
                            ^
      649.   		{
      650.   		if (!BN_mod(am,a,m,ctx))

crypto/bn/bn_lib.c:656:1: <LHS trace>
654.   	}
655.   
656. > int BN_ucmp(const BIGNUM *a, const BIGNUM *b)
657.   	{
658.   	int i;

crypto/bn/bn_lib.c:656:1: Parameter `a->top`
        654.   	}
        655.   
        656. > int BN_ucmp(const BIGNUM *a, const BIGNUM *b)
        657.   	{
        658.   	int i;

crypto/bn/bn_lib.c:668:7: Binary operation: ([0, a->top] - 1):unsigned64 by call to `BN_mod_exp` 
        666.   	ap=a->d;
        667.   	bp=b->d;
        668.   	for (i=a->top-1; i>=0; i--)
                     ^
        669.   		{
        670.   		t1= ap[i];
