crypto/bn/bn_recp.c:69: error: BUFFER_OVERRUN_L3
  Offset: [1, +oo] Size: [0, 8388607] by call to `BN_mul`.
Showing all 14 steps of the trace


crypto/bn/bn_recp.c:62:14: Call
60.   
61.       BN_CTX_start(ctx);
62.       if ((a = BN_CTX_get(ctx)) == NULL)
                   ^
63.           goto err;
64.       if (y != NULL) {

crypto/bn/bn_ctx.c:229:5: Call
  227.       }
  228.       /* OK, make sure the returned bignum is "zero" */
  229.       BN_zero(ret);
             ^
  230.       ctx->used++;
  231.       CTXDBG_RET(ctx, ret);

crypto/bn/bn_lib.c:393:1: Parameter `*a->d`
    391.   }
    392.   
    393. > int BN_set_word(BIGNUM *a, BN_ULONG w)
    394.   {
    395.       bn_check_top(a);

crypto/bn/bn_lib.c:396:9: Call
    394.   {
    395.       bn_check_top(a);
    396.       if (bn_expand(a, (int)sizeof(BN_ULONG) * 8) == NULL)
                   ^
    397.           return (0);
    398.       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_recp.c:69:18: Call
67.                   goto err;
68.           } else {
69.               if (!BN_mul(a, x, y, ctx))
                       ^
70.                   goto err;
71.           }

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:951:1: <Offset trace>
949.   }
950.   
951. > void bn_correct_top(BIGNUM *a)
952.   {
953.       BN_ULONG *ftl;

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

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

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

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

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