test/bntest.c:288: error: BUFFER_OVERRUN_L3
  Offset: [4, +oo] (⇐ [0, +oo] + 4) Size: [0, 8388607] by call to `BN_div_recp`.
Showing all 16 steps of the trace


test/bntest.c:287:9: Call
285.           BN_set_negative(a, rand_neg());
286.           BN_set_negative(b, rand_neg());
287.           BN_RECP_CTX_set(recp, b, ctx);
               ^
288.           BN_div_recp(d, c, a, recp, ctx);
289.           BN_mul(e, d, b, ctx);

crypto/bn/bn_recp.c:45:1: Parameter `*recp->N.d`
  43.   }
  44.   
  45. > int BN_RECP_CTX_set(BN_RECP_CTX *recp, const BIGNUM *d, BN_CTX *ctx)
  46.   {
  47.       if (!BN_copy(&(recp->N), d))

crypto/bn/bn_recp.c:47:10: Call
  45.   int BN_RECP_CTX_set(BN_RECP_CTX *recp, const BIGNUM *d, BN_CTX *ctx)
  46.   {
  47.       if (!BN_copy(&(recp->N), d))
                 ^
  48.           return 0;
  49.       BN_zero(&(recp->Nr));

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

test/bntest.c:288:9: Call
286.           BN_set_negative(b, rand_neg());
287.           BN_RECP_CTX_set(recp, b, ctx);
288.           BN_div_recp(d, c, a, recp, ctx);
               ^
289.           BN_mul(e, d, b, ctx);
290.           BN_add(d, e, c);

crypto/bn/bn_recp.c:84:1: Parameter `*recp->N.d`
  82.   }
  83.   
  84. > int BN_div_recp(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m,
  85.                   BN_RECP_CTX *recp, BN_CTX *ctx)
  86.   {

crypto/bn/bn_recp.c:140:10: Call
  138.       d->neg = 0;
  139.   
  140.       if (!BN_mul(b, &(recp->N), d, ctx))
                  ^
  141.           goto err;
  142.       if (!BN_usub(r, m, b))

crypto/bn/bn_mul.c:497:1: Parameter `*a->d`
    495.   #endif                          /* BN_RECURSION */
    496.   
    497. > int BN_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
    498.   {
    499.       int ret = bn_mul_fixed_top(r, a, b, ctx);

crypto/bn/bn_mul.c:499:15: Call
    497.   int BN_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
    498.   {
    499.       int ret = bn_mul_fixed_top(r, a, b, ctx);
                         ^
    500.   
    501.       bn_correct_top(r);

crypto/bn/bn_mul.c:507:1: Parameter `*a->d`
      505.   }
      506.   
      507. > int bn_mul_fixed_top(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
      508.   {
      509.       int ret = 0;

crypto/bn/bn_mul.c:587:17: Call
      585.                   if (bn_wexpand(rr, k * 4) == NULL)
      586.                       goto err;
      587.                   bn_mul_part_recursive(rr->d, a->d, b->d,
                             ^
      588.                                         j, al - j, bl - j, t->d);
      589.               } else {            /* al <= j || bl <= j */

crypto/bn/bn_mul.c:322:1: Parameter `*a`
        320.    */
        321.   /* tnX may not be negative but less than n */
        322. > void bn_mul_part_recursive(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b, int n,
        323.                              int tna, int tnb, BN_ULONG *t)
        324.   {

crypto/bn/bn_mul.c:330:9: Call
        328.   
        329.       if (n < 8) {
        330.           bn_mul_normal(r, a, n + tna, b, n + tnb);
                       ^
        331.           return;
        332.       }

crypto/bn/bn_mul.c:622:1: <Length trace>
620.   }
621.   
622. > void bn_mul_normal(BN_ULONG *r, BN_ULONG *a, int na, BN_ULONG *b, int nb)
623.   {
624.       BN_ULONG *rr;

crypto/bn/bn_mul.c:622:1: Parameter `*b`
          620.   }
          621.   
          622. > void bn_mul_normal(BN_ULONG *r, BN_ULONG *a, int na, BN_ULONG *b, int nb)
          623.   {
          624.       BN_ULONG *rr;

crypto/bn/bn_mul.c:657:50: Array access: Offset: [4, +oo] (⇐ [0, +oo] + 4) Size: [0, 8388607] by call to `BN_div_recp` 
          655.           if (--nb <= 0)
          656.               return;
          657.           rr[4] = bn_mul_add_words(&(r[4]), a, na, b[4]);
                                                                  ^
          658.           rr += 4;
          659.           r += 4;
