crypto/rsa/rsa_ossl.c:661: error: BUFFER_OVERRUN_L3
  Offset: 0 Size: [0, 8388607] by call to `BN_MONT_CTX_set_locked`.
Showing all 9 steps of the trace


crypto/rsa/rsa_ossl.c:636:9: Call
634.               goto err;
635.           }
636.           BN_with_flags(p, rsa->p, BN_FLG_CONSTTIME);
               ^
637.           BN_with_flags(q, rsa->q, BN_FLG_CONSTTIME);
638.   

crypto/bn/bn_lib.c:875:1: Parameter `*b->d`
  873.   }
  874.   
  875. > void BN_with_flags(BIGNUM *dest, const BIGNUM *b, int flags)
  876.   {
  877.       dest->d = b->d;

crypto/bn/bn_lib.c:877:5: Assignment
  875.   void BN_with_flags(BIGNUM *dest, const BIGNUM *b, int flags)
  876.   {
  877.       dest->d = b->d;
             ^
  878.       dest->top = b->top;
  879.       dest->dmax = b->dmax;

crypto/rsa/rsa_ossl.c:661:26: Call
659.                       pinfo = sk_RSA_PRIME_INFO_value(rsa->prime_infos, i);
660.                       BN_with_flags(r, pinfo->r, BN_FLG_CONSTTIME);
661.                       if (!BN_MONT_CTX_set_locked(&pinfo->m, rsa->lock, r, ctx)) {
                                ^
662.                           BN_free(p);
663.                           BN_free(q);

crypto/bn/bn_mont.c:401:1: Parameter `*mod->d`
  399.   }
  400.   
  401. > BN_MONT_CTX *BN_MONT_CTX_set_locked(BN_MONT_CTX **pmont, CRYPTO_RWLOCK *lock,
  402.                                       const BIGNUM *mod, BN_CTX *ctx)
  403.   {

crypto/bn/bn_mont.c:423:10: Call
  421.       if (ret == NULL)
  422.           return NULL;
  423.       if (!BN_MONT_CTX_set(ret, mod, ctx)) {
                  ^
  424.           BN_MONT_CTX_free(ret);
  425.           return NULL;

crypto/bn/bn_mont.c:247:1: <Length trace>
245.   }
246.   
247. > int BN_MONT_CTX_set(BN_MONT_CTX *mont, const BIGNUM *mod, BN_CTX *ctx)
248.   {
249.       int ret = 0;

crypto/bn/bn_mont.c:247:1: Parameter `*mod->d`
    245.   }
    246.   
    247. > int BN_MONT_CTX_set(BN_MONT_CTX *mont, const BIGNUM *mod, BN_CTX *ctx)
    248.   {
    249.       int ret = 0;

crypto/bn/bn_mont.c:325:18: Array access: Offset: 0 Size: [0, 8388607] by call to `BN_MONT_CTX_set_locked` 
    323.               goto err;           /* R */
    324.   
    325.           buf[0] = mod->d[0];     /* tmod = N mod word size */
                            ^
    326.           buf[1] = 0;
    327.           tmod.top = buf[0] != 0 ? 1 : 0;
