crypto/bn/bn_exp.c:640: error: INTEGER_OVERFLOW_L1
  ([-oo, 1] - 4):unsigned64 by call to `BN_mod_mul_montgomery`.
Showing all 13 steps of the trace


crypto/bn/bn_exp.c:640:8: Call
638.   	 * once each for a^0 and intermediate result.
639.   	 */
640.    	if (!BN_to_montgomery(r,BN_value_one(),mont,ctx)) goto err;
              ^
641.   	if (!MOD_EXP_CTIME_COPY_TO_PREBUF(r, top, powerbuf, 0, numPowers)) goto err;
642.   

crypto/bn/bn_lib.c:137:32: Assignment
  135.   	{
  136.   	static const BN_ULONG data_one=1L;
  137.   	static const BIGNUM const_one={(BN_ULONG *)&data_one,1,1,0,BN_FLG_STATIC_DATA};
                                        ^
  138.   
  139.   	return(&const_one);

crypto/bn/bn_exp.c:640:8: Call
638.   	 * once each for a^0 and intermediate result.
639.   	 */
640.    	if (!BN_to_montgomery(r,BN_value_one(),mont,ctx)) goto err;
              ^
641.   	if (!MOD_EXP_CTIME_COPY_TO_PREBUF(r, top, powerbuf, 0, numPowers)) goto err;
642.   

crypto/bn/bn_mont.c:129:1: Parameter `a->top`
  127.   #endif
  128.   
  129. > int BN_mod_mul_montgomery(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,
  130.   			  BN_MONT_CTX *mont, BN_CTX *ctx)
  131.   	{

crypto/bn/bn_mont.c:157:8: Call
  155.   	if (a == b)
  156.   		{
  157.   		if (!BN_sqr(tmp,a,ctx)) goto err;
                ^
  158.   		}
  159.   	else

crypto/bn/bn_sqr.c:65:1: Parameter `a->top`
    63.   /* r must not be a */
    64.   /* I've just gone over this and it is now %20 faster on x86 - eay - 27 Jun 96 */
    65. > int BN_sqr(BIGNUM *r, const BIGNUM *a, BN_CTX *ctx)
    66.   	{
    67.   	int max,al;

crypto/bn/bn_sqr.c:76:2: Assignment
    74.   	bn_check_top(a);
    75.   
    76.   	al=a->top;
           ^
    77.   	if (al <= 0)
    78.   		{

crypto/bn/bn_sqr.c:132:5: Call
    130.   				{
    131.   				if (bn_wexpand(tmp,max) == NULL) goto err;
    132.   				bn_sqr_normal(rr->d,a->d,al,tmp->d);
               ^
    133.   				}
    134.   			}

crypto/bn/bn_sqr.c:158:1: Parameter `n`
      156.   
      157.   /* tmp must have 2*n words */
      158. > void bn_sqr_normal(BN_ULONG *r, const BN_ULONG *a, int n, BN_ULONG *tmp)
      159.   	{
      160.   	int i,j,max;

crypto/bn/bn_sqr.c:190:2: Call
      188.   	/* There will not be a carry */
      189.   
      190.   	bn_sqr_words(tmp,a,n);
              ^
      191.   
      192.   	bn_add_words(r,r,tmp,max);

crypto/bn/bn_asm.c:204:1: <LHS trace>
202.   	} 
203.   
204. > void bn_sqr_words(BN_ULONG *r, const BN_ULONG *a, size_t n)
205.           {
206.   	assert(n >= 0);

crypto/bn/bn_asm.c:204:1: Parameter `n`
        202.   	} 
        203.   
        204. > void bn_sqr_words(BN_ULONG *r, const BN_ULONG *a, size_t n)
        205.           {
        206.   	assert(n >= 0);

crypto/bn/bn_asm.c:216:15: Binary operation: ([-oo, 1] - 4):unsigned64 by call to `BN_mod_mul_montgomery` 
        214.   		sqr64(r[4],r[5],a[2]);
        215.   		sqr64(r[6],r[7],a[3]);
        216.   		a+=4; r+=8; n-=4;
                             ^
        217.   		}
        218.   #endif
