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


crypto/rsa/rsa_ossl.c:800:10: Call
798.       }
799.   
800.       if (!BN_sub(r0, r0, m1))
                ^
801.           goto err;
802.       /*

crypto/bn/bn_add.c:45:1: Parameter `*r->d`
  43.   
  44.   /* signed sub of b from a. */
  45. > int BN_sub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b)
  46.   {
  47.       int ret, r_neg, cmp_res;

crypto/bn/bn_add.c:59:19: Call
  57.           if (cmp_res > 0) {
  58.               r_neg = a->neg;
  59.               ret = BN_usub(r, a, b);
                          ^
  60.           } else if (cmp_res < 0) {
  61.               r_neg = !b->neg;

crypto/bn/bn_add.c:125:1: Parameter `*r->d`
    123.   
    124.   /* unsigned subtraction of b from a, a must be larger than b. */
    125. > int BN_usub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b)
    126.   {
    127.       int max, min, dif;

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:209:1: Parameter `*rm->d`
  207.    * If 'dv' or 'rm' is NULL, the respective value is not returned.
  208.    */
  209. > int BN_div(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor,
  210.              BN_CTX *ctx)
  211.   {

crypto/rsa/rsa_ossl.c:839:10: Call
837.       if (!BN_mul(r1, r0, rsa->q, ctx))
838.           goto err;
839.       if (!BN_add(r0, r1, m1))
                ^
840.           goto err;
841.   

crypto/bn/bn_add.c:14:1: Parameter `*r->d`
  12.   
  13.   /* signed add of b to a. */
  14. > int BN_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b)
  15.   {
  16.       int ret, r_neg, cmp_res;

crypto/bn/bn_add.c:34:13: Call
  32.           } else {
  33.               r_neg = 0;
  34.               BN_zero(r);
                    ^
  35.               ret = 1;
  36.           }

crypto/bn/bn_lib.c:359:1: <Length trace>
357.   }
358.   
359. > int BN_set_word(BIGNUM *a, BN_ULONG w)
360.   {
361.       bn_check_top(a);

crypto/bn/bn_lib.c:359:1: Parameter `*a->d`
    357.   }
    358.   
    359. > int BN_set_word(BIGNUM *a, BN_ULONG w)
    360.   {
    361.       bn_check_top(a);

crypto/bn/bn_lib.c:362:9: Call
    360.   {
    361.       bn_check_top(a);
    362.       if (bn_expand(a, (int)sizeof(BN_ULONG) * 8) == NULL)
                   ^
    363.           return 0;
    364.       a->neg = 0;

crypto/bn/bn_lcl.h:660:1: Parameter `*a->d`
      658.                            const BIGNUM *add, const BIGNUM *rem, BN_CTX *ctx);
      659.   
      660. > static ossl_inline BIGNUM *bn_expand(BIGNUM *a, int bits)
      661.   {
      662.       if (bits > (INT_MAX - BN_BITS2 + 1))

crypto/bn/bn_lib.c:365:5: Array access: Offset: 0 Size: [0, 8388607] by call to `BN_add` 
    363.           return 0;
    364.       a->neg = 0;
    365.       a->d[0] = w;
               ^
    366.       a->top = (w ? 1 : 0);
    367.       a->flags &= ~BN_FLG_FIXED_TOP;
