crypto/bn/bn_sqrt.c:98: error: BUFFER_OVERRUN_L3
  Offset: [1, +oo] Size: [0, 8388607] by call to `BN_mod_exp`.
Showing all 14 steps of the trace


crypto/bn/bn_sqrt.c:93:14: Call
91.            * so we can use exponent  (|p|+1)/4,  i.e.  (|p|-3)/4 + 1.
92.            */
93.           if (!BN_rshift(q, p, 2))
                   ^
94.               goto end;
95.           q->neg = 0;

crypto/bn/bn_shift.c:153:1: Parameter `r->top`
  151.   }
  152.   
  153. > int BN_rshift(BIGNUM *r, const BIGNUM *a, int n)
  154.   {
  155.       int i, j, nw, lb, rb;

crypto/bn/bn_sqrt.c:98:14: Call
96.           if (!BN_add_word(q, 1))
97.               goto end;
98.           if (!BN_mod_exp(ret, A, q, p, ctx))
                    ^
99.               goto end;
100.           err = 0;

crypto/bn/bn_exp.c:89:1: Parameter `*p->d`
  87.   }
  88.   
  89. > int BN_mod_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m,
  90.                  BN_CTX *ctx)
  91.   {

crypto/bn/bn_exp.c:144:19: Call
  142.           } else
  143.   # endif
  144.               ret = BN_mod_exp_mont(r, a, p, m, ctx, NULL);
                           ^
  145.       } else
  146.   #endif

crypto/bn/bn_exp.c:296:1: Parameter `*p->d`
    294.   }
    295.   
    296. > int BN_mod_exp_mont(BIGNUM *rr, const BIGNUM *a, const BIGNUM *p,
    297.                       const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *in_mont)
    298.   {

crypto/bn/bn_exp.c:310:16: Call
    308.               || BN_get_flags(a, BN_FLG_CONSTTIME) != 0
    309.               || BN_get_flags(m, BN_FLG_CONSTTIME) != 0) {
    310.           return BN_mod_exp_mont_consttime(rr, a, p, m, ctx, in_mont);
                          ^
    311.       }
    312.   

crypto/bn/bn_exp.c:592:1: Parameter `*p->d`
      590.    * http://www.daemonology.net/hyperthreading-considered-harmful/)
      591.    */
      592. > int BN_mod_exp_mont_consttime(BIGNUM *rr, const BIGNUM *a, const BIGNUM *p,
      593.                                 const BIGNUM *m, BN_CTX *ctx,
      594.                                 BN_MONT_CTX *in_mont)

crypto/bn/bn_exp.c:1057:18: Call
      1055.           wmask = (1 << window0) - 1;
      1056.           bits -= window0;
      1057.           wvalue = bn_get_bits(p, bits) & wmask;
                               ^
      1058.           if (!MOD_EXP_CTIME_COPY_FROM_PREBUF(&tmp, top, powerbuf, wvalue,
      1059.                                               window))

crypto/bn/bn_exp.c:472:1: <Offset trace>
470.   }
471.   
472. > static BN_ULONG bn_get_bits(const BIGNUM *a, int bitpos)
473.   {
474.       BN_ULONG ret = 0;

crypto/bn/bn_exp.c:472:1: Parameter `a->top`
        470.   }
        471.   
        472. > static BN_ULONG bn_get_bits(const BIGNUM *a, int bitpos)
        473.   {
        474.       BN_ULONG ret = 0;

crypto/bn/bn_exp.c:472:1: <Length trace>
470.   }
471.   
472. > static BN_ULONG bn_get_bits(const BIGNUM *a, int bitpos)
473.   {
474.       BN_ULONG ret = 0;

crypto/bn/bn_exp.c:472:1: Parameter `*a->d`
        470.   }
        471.   
        472. > static BN_ULONG bn_get_bits(const BIGNUM *a, int bitpos)
        473.   {
        474.       BN_ULONG ret = 0;

crypto/bn/bn_exp.c:484:24: Array access: Offset: [1, +oo] Size: [0, 8388607] by call to `BN_mod_exp` 
        482.               ret >>= bitpos;
        483.               if (++wordpos < a->top)
        484.                   ret |= a->d[wordpos] << (BN_BITS2 - bitpos);
                                      ^
        485.           }
        486.       }
