crypto/rsa/rsa_chk.c:66: error: BUFFER_OVERRUN_L3
  Offset: [1, +oo] Size: [0, 8388607] by call to `BN_mul`.
Showing all 16 steps of the trace


crypto/rsa/rsa_chk.c:60:9: Call
58.   
59.       /* q prime? */
60.       if (BN_is_prime_ex(key->q, BN_prime_checks, NULL, cb) != 1) {
              ^
61.           ret = 0;
62.           RSAerr(RSA_F_RSA_CHECK_KEY_EX, RSA_R_Q_NOT_PRIME);

crypto/bn/bn_prime.c:150:12: Call
  148.                      BN_GENCB *cb)
  149.   {
  150.       return BN_is_prime_fasttest_ex(a, checks, ctx_passed, 0, cb);
                    ^
  151.   }
  152.   

crypto/bn/bn_prime.c:227:13: Call
    225.           /* now 1 <= check < a */
    226.   
    227.           j = witness(check, a, A1, A1_odd, k, ctx, mont);
                       ^
    228.           if (j == -1)
    229.               goto err;

crypto/bn/bn_prime.c:253:10: Call
      251.                      BN_MONT_CTX *mont)
      252.   {
      253.       if (!BN_mod_exp_mont(w, w, a1_odd, a, ctx, mont)) /* w := w^a1_odd mod a */
                      ^
      254.           return -1;
      255.       if (BN_is_one(w))

crypto/bn/bn_exp.c:350:14: Call
        348.   
        349.       if (a->neg || BN_ucmp(a, m) >= 0) {
        350.           if (!BN_nnmod(val[0], a, m, ctx))
                            ^
        351.               goto err;
        352.           aa = val[0];

crypto/bn/bn_mod.c:20:11: Call
          18.        */
          19.   
          20.       if (!(BN_mod(r, m, d, ctx)))
                          ^
          21.           return 0;
          22.       if (!r->neg)

crypto/bn/bn_div.c:140:1: Parameter `*dv->d`
            138.    * If 'dv' or 'rm' is NULL, the respective value is not returned.
            139.    */
            140. > int BN_div(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor,
            141.              BN_CTX *ctx)
            142.   {

crypto/rsa/rsa_chk.c:66:10: Call
64.   
65.       /* n = p*q? */
66.       if (!BN_mul(i, key->p, key->q, ctx)) {
               ^
67.           ret = -1;
68.           goto err;

crypto/bn/bn_mul.c:545:13: Assignment
  543.               if (bn_wexpand(rr, 16) == NULL)
  544.                   goto err;
  545.               rr->top = 16;
                     ^
  546.               bn_mul_comba8(rr->d, a->d, b->d);
  547.               goto end;

crypto/bn/bn_mul.c:639:5: Call
  637.   #endif
  638.       rr->neg = a->neg ^ b->neg;
  639.       bn_correct_top(rr);
             ^
  640.       if (r != rr && BN_copy(r, rr) == NULL)
  641.           goto err;

crypto/bn/bn_lib.c:953:1: <Offset trace>
951.   }
952.   
953. > void bn_correct_top(BIGNUM *a)
954.   {
955.       BN_ULONG *ftl;

crypto/bn/bn_lib.c:953:1: Parameter `a->top`
    951.   }
    952.   
    953. > void bn_correct_top(BIGNUM *a)
    954.   {
    955.       BN_ULONG *ftl;

crypto/bn/bn_lib.c:956:5: Assignment
    954.   {
    955.       BN_ULONG *ftl;
    956.       int tmp_top = a->top;
               ^
    957.   
    958.       if (tmp_top > 0) {

crypto/bn/bn_lib.c:953:1: <Length trace>
951.   }
952.   
953. > void bn_correct_top(BIGNUM *a)
954.   {
955.       BN_ULONG *ftl;

crypto/bn/bn_lib.c:953:1: Parameter `*a->d`
    951.   }
    952.   
    953. > void bn_correct_top(BIGNUM *a)
    954.   {
    955.       BN_ULONG *ftl;

crypto/bn/bn_lib.c:959:14: Array access: Offset: [1, +oo] Size: [0, 8388607] by call to `BN_mul` 
    957.   
    958.       if (tmp_top > 0) {
    959.           for (ftl = &(a->d[tmp_top]); tmp_top > 0; tmp_top--) {
                        ^
    960.               ftl--;
    961.               if (*ftl != 0)
