crypto/rsa/rsa_ossl.c:229: error: BUFFER_OVERRUN_L3
  Offset: [1, +oo] (⇐ [0, +oo] + [1, +oo]) Size: [0, 8388607] by call to `BN_BLINDING_invert_ex`.
Showing all 15 steps of the trace


crypto/rsa/rsa_ossl.c:229:12: Call
227.        * to access the blinding without a lock.
228.        */
229.       return BN_BLINDING_invert_ex(f, unblind, b, ctx);
                  ^
230.   }
231.   

crypto/bn/bn_blind.c:167:1: Parameter `b->m_ctx->N.top`
  165.   }
  166.   
  167. > int BN_BLINDING_invert_ex(BIGNUM *n, const BIGNUM *r, BN_BLINDING *b,
  168.                             BN_CTX *ctx)
  169.   {

crypto/bn/bn_blind.c:194:15: Call
  192.               n->flags |= (BN_FLG_FIXED_TOP & ~mask);
  193.           }
  194.           ret = BN_mod_mul_montgomery(n, n, r, b->m_ctx, ctx);
                       ^
  195.       } else {
  196.           ret = BN_mod_mul(n, n, r, b->mod, ctx);

crypto/bn/bn_mont.c:26:1: Parameter `mont->N.top`
    24.   #endif
    25.   
    26. > int BN_mod_mul_montgomery(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,
    27.                             BN_MONT_CTX *mont, BN_CTX *ctx)
    28.   {

crypto/bn/bn_mont.c:29:15: Call
    27.                             BN_MONT_CTX *mont, BN_CTX *ctx)
    28.   {
    29.       int ret = bn_mul_mont_fixed_top(r, a, b, mont, ctx);
                        ^
    30.   
    31.       bn_correct_top(r);

crypto/bn/bn_mont.c:37:1: Parameter `mont->N.top`
      35.   }
      36.   
      37. > int bn_mul_mont_fixed_top(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,
      38.                             BN_MONT_CTX *mont, BN_CTX *ctx)
      39.   {

crypto/bn/bn_mont.c:75:10: Call
      73.       /* reduce from aRR to aR */
      74.   #ifdef MONT_WORD
      75.       if (!bn_from_montgomery_word(r, tmp, mont))
                     ^
      76.           goto err;
      77.   #else

crypto/bn/bn_mont.c:125:21: <Offset trace>
123.        * includes |carry| which is stored separately.
124.        */
125.       for (carry = 0, i = 0; i < nl; i++, rp++) {
                           ^
126.           v = bn_mul_add_words(rp, np, nl, (rp[0] * n0) & BN_MASK2);
127.           v = (v + carry + rp[nl]) & BN_MASK2;

crypto/bn/bn_mont.c:125:21: Assignment
        123.        * includes |carry| which is stored separately.
        124.        */
        125.       for (carry = 0, i = 0; i < nl; i++, rp++) {
                                   ^
        126.           v = bn_mul_add_words(rp, np, nl, (rp[0] * n0) & BN_MASK2);
        127.           v = (v + carry + rp[nl]) & BN_MASK2;

crypto/bn/bn_mont.c:88:1: <Length trace>
86.   
87.   #ifdef MONT_WORD
88. > static int bn_from_montgomery_word(BIGNUM *ret, BIGNUM *r, BN_MONT_CTX *mont)
89.   {
90.       BIGNUM *n;

crypto/bn/bn_mont.c:88:1: Parameter `*r->d`
        86.   
        87.   #ifdef MONT_WORD
        88. > static int bn_from_montgomery_word(BIGNUM *ret, BIGNUM *r, BN_MONT_CTX *mont)
        89.   {
        90.       BIGNUM *n;

crypto/bn/bn_mont.c:103:9: Call
        101.   
        102.       max = (2 * nl);             /* carry is stored separately */
        103.       if (bn_wexpand(r, max) == NULL)
                       ^
        104.           return 0;
        105.   

crypto/bn/bn_lib.c:948:1: Parameter `*a->d`
          946.   }
          947.   
          948. > BIGNUM *bn_wexpand(BIGNUM *a, int words)
          949.   {
          950.       return (words <= a->dmax) ? a : bn_expand2(a, words);

crypto/bn/bn_mont.c:108:5: Assignment
        106.       r->neg ^= n->neg;
        107.       np = n->d;
        108.       rp = r->d;
                   ^
        109.   
        110.       /* clear the top words of T */

crypto/bn/bn_mont.c:127:26: Array access: Offset: [1, +oo] (⇐ [0, +oo] + [1, +oo]) Size: [0, 8388607] by call to `BN_BLINDING_invert_ex` 
        125.       for (carry = 0, i = 0; i < nl; i++, rp++) {
        126.           v = bn_mul_add_words(rp, np, nl, (rp[0] * n0) & BN_MASK2);
        127.           v = (v + carry + rp[nl]) & BN_MASK2;
                                        ^
        128.           carry |= (v != rp[nl]);
        129.           carry &= (v <= rp[nl]);
