crypto/rsa/rsa_ossl.c:662: 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:637:9: Call
635.               goto err;
636.           }
637.           BN_with_flags(p, rsa->p, BN_FLG_CONSTTIME);
               ^
638.           BN_with_flags(q, rsa->q, BN_FLG_CONSTTIME);
639.   

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

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

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

crypto/bn/bn_mont.c:393:1: Parameter `*mod->d`
  391.   }
  392.   
  393. > BN_MONT_CTX *BN_MONT_CTX_set_locked(BN_MONT_CTX **pmont, CRYPTO_RWLOCK *lock,
  394.                                       const BIGNUM *mod, BN_CTX *ctx)
  395.   {

crypto/bn/bn_mont.c:415:10: Call
  413.       if (ret == NULL)
  414.           return NULL;
  415.       if (!BN_MONT_CTX_set(ret, mod, ctx)) {
                  ^
  416.           BN_MONT_CTX_free(ret);
  417.           return NULL;

crypto/bn/bn_mont.c:233:1: Parameter `*mod->d`
    231.   }
    232.   
    233. > int BN_MONT_CTX_set(BN_MONT_CTX *mont, const BIGNUM *mod, BN_CTX *ctx)
    234.   {
    235.       int ret = 0;

crypto/bn/bn_mont.c:245:10: Call
    243.           goto err;
    244.       R = &(mont->RR);            /* grab RR as a temp */
    245.       if (!BN_copy(&(mont->N), mod))
                    ^
    246.           goto err;               /* Set N */
    247.       if (BN_get_flags(mod, BN_FLG_CONSTTIME) != 0)

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

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

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

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

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