crypto/rsa/rsa_ossl.c:661: error: BUFFER_OVERRUN_L3
  Offset added: [8, +oo] Size: [0, 536870848] by call to `BN_MONT_CTX_set_locked`.
Showing all 13 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: 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:259:10: Call
    257.           goto err;
    258.       R = &(mont->RR);            /* grab RR as a temp */
    259.       if (!BN_copy(&(mont->N), mod))
                    ^
    260.           goto err;               /* Set N */
    261.       mont->N.neg = 0;

crypto/bn/bn_lib.c:312:1: <Offset trace>
310.   }
311.   
312. > BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b)
313.   {
314.       bn_check_top(b);

crypto/bn/bn_lib.c:312:1: Parameter `b->top`
      310.   }
      311.   
      312. > BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b)
      313.   {
      314.       bn_check_top(b);

crypto/bn/bn_lib.c:312:1: <Length trace>
310.   }
311.   
312. > BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b)
313.   {
314.       bn_check_top(b);

crypto/bn/bn_lib.c:312:1: Parameter `*b->d`
      310.   }
      311.   
      312. > BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b)
      313.   {
      314.       bn_check_top(b);

crypto/bn/bn_lib.c:322:9: Array access: Offset added: [8, +oo] Size: [0, 536870848] by call to `BN_MONT_CTX_set_locked` 
      320.   
      321.       if (b->top > 0)
      322.           memcpy(a->d, b->d, sizeof(b->d[0]) * b->top);
                     ^
      323.   
      324.       if (BN_get_flags(b, BN_FLG_CONSTTIME) != 0)
