crypto/rsa/rsa_ossl.c:819: error: BUFFER_OVERRUN_L3
  Offset added: [8, +oo] Size: [0, 536870848] by call to `BN_div`.
Showing all 11 steps of the trace


crypto/rsa/rsa_ossl.c:621:15: Call
619.            * BN_FLG_CONSTTIME flag
620.            */
621.           if (!(BN_with_flags(factor, rsa->p, BN_FLG_CONSTTIME),
                     ^
622.                 BN_MONT_CTX_set_locked(&rsa->_method_mod_p, rsa->lock,
623.                                        factor, ctx))

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

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

crypto/rsa/rsa_ossl.c:819:14: Call
817.           BN_with_flags(pr1, r1, BN_FLG_CONSTTIME);
818.   
819.           if (!BN_mod(r0, pr1, rsa->p, ctx)) {
                    ^
820.               BN_free(pr1);
821.               goto err;

crypto/bn/bn_div.c:188:1: Parameter `*num->d`
  186.    * If 'dv' or 'rm' is NULL, the respective value is not returned.
  187.    */
  188. > int BN_div(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor,
  189.              BN_CTX *ctx)
  190.   {

crypto/bn/bn_div.c:233:17: Call
  231.       if (!no_branch && BN_ucmp(num, divisor) < 0) {
  232.           if (rm != NULL) {
  233.               if (BN_copy(rm, num) == NULL)
                         ^
  234.                   return 0;
  235.           }

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_div` 
    289.   
    290.       if (b->top > 0)
    291.           memcpy(a->d, b->d, sizeof(b->d[0]) * b->top);
                   ^
    292.   
    293.       a->neg = b->neg;
