crypto/rsa/rsa_ossl.c:648: 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:623:9: Call
621.               goto err;
622.           }
623.           BN_with_flags(p, rsa->p, BN_FLG_CONSTTIME);
               ^
624.           BN_with_flags(q, rsa->q, BN_FLG_CONSTTIME);
625.   

crypto/bn/bn_lib.c:884:1: Parameter `*b->d`
  882.   }
  883.   
  884. > void BN_with_flags(BIGNUM *dest, const BIGNUM *b, int flags)
  885.   {
  886.       dest->d = b->d;

crypto/bn/bn_lib.c:886:5: Assignment
  884.   void BN_with_flags(BIGNUM *dest, const BIGNUM *b, int flags)
  885.   {
  886.       dest->d = b->d;
             ^
  887.       dest->top = b->top;
  888.       dest->dmax = b->dmax;

crypto/rsa/rsa_ossl.c:648:26: Call
646.                       pinfo = sk_RSA_PRIME_INFO_value(rsa->prime_infos, i);
647.                       BN_with_flags(r, pinfo->r, BN_FLG_CONSTTIME);
648.                       if (!BN_MONT_CTX_set_locked(&pinfo->m, rsa->lock, r, ctx)) {
                                ^
649.                           BN_free(p);
650.                           BN_free(q);

crypto/bn/bn_mont.c:416:1: Parameter `*mod->d`
  414.   }
  415.   
  416. > BN_MONT_CTX *BN_MONT_CTX_set_locked(BN_MONT_CTX **pmont, CRYPTO_RWLOCK *lock,
  417.                                       const BIGNUM *mod, BN_CTX *ctx)
  418.   {

crypto/bn/bn_mont.c:438:10: Call
  436.       if (ret == NULL)
  437.           return NULL;
  438.       if (!BN_MONT_CTX_set(ret, mod, ctx)) {
                  ^
  439.           BN_MONT_CTX_free(ret);
  440.           return NULL;

crypto/bn/bn_mont.c:251:1: Parameter `*mod->d`
    249.   }
    250.   
    251. > int BN_MONT_CTX_set(BN_MONT_CTX *mont, const BIGNUM *mod, BN_CTX *ctx)
    252.   {
    253.       int i, ret = 0;

crypto/bn/bn_mont.c:263:10: Call
    261.           goto err;
    262.       R = &(mont->RR);            /* grab RR as a temp */
    263.       if (!BN_copy(&(mont->N), mod))
                    ^
    264.           goto err;               /* Set N */
    265.       if (BN_get_flags(mod, BN_FLG_CONSTTIME) != 0)

crypto/bn/bn_lib.c:281:1: <Offset trace>
279.   }
280.   
281. > BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b)
282.   {
283.       bn_check_top(b);

crypto/bn/bn_lib.c:281:1: Parameter `b->top`
      279.   }
      280.   
      281. > BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b)
      282.   {
      283.       bn_check_top(b);

crypto/bn/bn_lib.c:281:1: <Length trace>
279.   }
280.   
281. > BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b)
282.   {
283.       bn_check_top(b);

crypto/bn/bn_lib.c:281:1: Parameter `*b->d`
      279.   }
      280.   
      281. > BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b)
      282.   {
      283.       bn_check_top(b);

crypto/bn/bn_lib.c:291:9: Array access: Offset added: [8, +oo] Size: [0, 536870848] by call to `BN_MONT_CTX_set_locked` 
      289.   
      290.       if (b->top > 0)
      291.           memcpy(a->d, b->d, sizeof(b->d[0]) * b->top);
                     ^
      292.   
      293.       a->neg = b->neg;
