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


test/bntest.c:590:9: Call
588.           a->neg = rand_neg();
589.           b->neg = rand_neg();
590.           BN_RECP_CTX_set(recp, b, ctx);
               ^
591.           BN_div_recp(d, c, a, recp, ctx);
592.           if (bp != NULL) {

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

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

crypto/bn/bn_lib.c:362:1: Parameter `*a->d`
    360.   }
    361.   
    362. > BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b)
    363.   {
    364.       int i;

test/bntest.c:591:9: Call
589.           b->neg = rand_neg();
590.           BN_RECP_CTX_set(recp, b, ctx);
591.           BN_div_recp(d, c, a, recp, ctx);
               ^
592.           if (bp != NULL) {
593.               if (!results) {

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

crypto/bn/bn_recp.c:145:10: Call
  143.       d->neg = 0;
  144.   
  145.       if (!BN_mul(b, &(recp->N), d, ctx))
                  ^
  146.           goto err;
  147.       if (!BN_usub(r, m, b))

crypto/bn/bn_mul.c:828:1: Parameter `*a->d`
    826.   #endif                          /* BN_RECURSION */
    827.   
    828. > int BN_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
    829.   {
    830.       int ret = 0;

crypto/bn/bn_mul.c:909:17: Call
    907.                   if (bn_wexpand(rr, k * 4) == NULL)
    908.                       goto err;
    909.                   bn_mul_part_recursive(rr->d, a->d, b->d,
                           ^
    910.                                         j, al - j, bl - j, t->d);
    911.               } else {            /* al <= j || bl <= j */

crypto/bn/bn_mul.c:480:1: Parameter `n`
      478.    */
      479.   /* tnX may not be negative but less than n */
      480. > void bn_mul_part_recursive(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b, int n,
      481.                              int tna, int tnb, BN_ULONG *t)
      482.   {

crypto/bn/bn_mul.c:493:10: Call
      491.   
      492.       /* r=(a[0]-a[1])*(b[1]-b[0]) */
      493.       c1 = bn_cmp_part_words(a, &(a[n]), tna, n - tna);
                      ^
      494.       c2 = bn_cmp_part_words(&(b[n]), b, tnb, tnb - n);
      495.       neg = 0;

crypto/bn/bn_lib.c:803:1: Parameter `cl`
        801.    */
        802.   
        803. > int bn_cmp_part_words(const BN_ULONG *a, const BN_ULONG *b, int cl, int dl)
        804.   {
        805.       int n, i;

crypto/bn/bn_lib.c:820:12: Call
        818.           }
        819.       }
        820.       return bn_cmp_words(a, b, cl);
                          ^
        821.   }
        822.   

crypto/bn/bn_lib.c:776:1: <Offset trace>
774.   }
775.   
776. > int bn_cmp_words(const BN_ULONG *a, const BN_ULONG *b, int n)
777.   {
778.       int i;

crypto/bn/bn_lib.c:776:1: Parameter `n`
          774.   }
          775.   
          776. > int bn_cmp_words(const BN_ULONG *a, const BN_ULONG *b, int n)
          777.   {
          778.       int i;

crypto/bn/bn_lib.c:785:10: Assignment
          783.       if (aa != bb)
          784.           return ((aa > bb) ? 1 : -1);
          785.       for (i = n - 2; i >= 0; i--) {
                          ^
          786.           aa = a[i];
          787.           bb = b[i];

crypto/bn/bn_lib.c:776:1: <Length trace>
774.   }
775.   
776. > int bn_cmp_words(const BN_ULONG *a, const BN_ULONG *b, int n)
777.   {
778.       int i;

crypto/bn/bn_lib.c:776:1: Parameter `*b`
          774.   }
          775.   
          776. > int bn_cmp_words(const BN_ULONG *a, const BN_ULONG *b, int n)
          777.   {
          778.       int i;

crypto/bn/bn_lib.c:787:14: Array access: Offset: [8, +oo] (⇐ [8, +oo] + [0, +oo]) Size: [0, 8388607] by call to `BN_div_recp` 
          785.       for (i = n - 2; i >= 0; i--) {
          786.           aa = a[i];
          787.           bb = b[i];
                              ^
          788.           if (aa != bb)
          789.               return ((aa > bb) ? 1 : -1);
