crypto/ec/ecp_smpl.c:1308: error: BUFFER_OVERRUN_L3
  Offset: 0 Size: [0, 8388607] by call to `BN_mod_inverse`.
Showing all 19 steps of the trace


crypto/ec/ecp_smpl.c:1259:11: Call
1257.   
1258.       BN_CTX_start(ctx);
1259.       tmp = BN_CTX_get(ctx);
                  ^
1260.       tmp_Z = BN_CTX_get(ctx);
1261.       if (tmp == NULL || tmp_Z == NULL)

crypto/bn/bn_ctx.c:284:5: Call
  282.       }
  283.       /* OK, make sure the returned bignum is "zero" */
  284.       BN_zero(ret);
             ^
  285.       ctx->used++;
  286.       CTXDBG_RET(ctx, ret);

crypto/bn/bn_lib.c:530:1: Parameter `*a->d`
    528.   }
    529.   
    530. > int BN_set_word(BIGNUM *a, BN_ULONG w)
    531.   {
    532.       bn_check_top(a);

crypto/ec/ecp_smpl.c:1308:10: Call
1306.        */
1307.   
1308.       if (!BN_mod_inverse(tmp, prod_Z[num - 1], group->field, ctx)) {
                 ^
1309.           ECerr(EC_F_EC_GFP_SIMPLE_POINTS_MAKE_AFFINE, ERR_R_BN_LIB);
1310.           goto err;

crypto/bn/bn_gcd.c:226:1: Parameter `*in->d`
  224.                                           BN_CTX *ctx);
  225.   
  226. > BIGNUM *BN_mod_inverse(BIGNUM *in,
  227.                          const BIGNUM *a, const BIGNUM *n, BN_CTX *ctx)
  228.   {

crypto/bn/bn_gcd.c:231:10: Call
  229.       BIGNUM *rv;
  230.       int noinv;
  231.       rv = int_bn_mod_inverse(in, a, n, ctx, &noinv);
                  ^
  232.       if (noinv)
  233.           BNerr(BN_F_BN_MOD_INVERSE, BN_R_NO_INVERSE);

crypto/bn/bn_gcd.c:237:1: Parameter `*in->d`
    235.   }
    236.   
    237. > BIGNUM *int_bn_mod_inverse(BIGNUM *in,
    238.                              const BIGNUM *a, const BIGNUM *n, BN_CTX *ctx,
    239.                              int *pnoinv)

crypto/bn/bn_gcd.c:250:16: Call
    248.       if ((BN_get_flags(a, BN_FLG_CONSTTIME) != 0)
    249.           || (BN_get_flags(n, BN_FLG_CONSTTIME) != 0)) {
    250.           return BN_mod_inverse_no_branch(in, a, n, ctx);
                          ^
    251.       }
    252.   

crypto/bn/bn_gcd.c:557:1: Parameter `*in->d`
      555.    * not contain branches that may leak sensitive information.
      556.    */
      557. > static BIGNUM *BN_mod_inverse_no_branch(BIGNUM *in,
      558.                                           const BIGNUM *a, const BIGNUM *n,
      559.                                           BN_CTX *ctx)

crypto/bn/bn_gcd.c:708:18: Call
      706.                   goto err;
      707.           } else {
      708.               if (!BN_nnmod(R, Y, n, ctx))
                              ^
      709.                   goto err;
      710.           }

crypto/bn/bn_mod.c:119:1: Parameter `*r->d`
        117.   #include "bn_lcl.h"
        118.   
        119. > int BN_nnmod(BIGNUM *r, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx)
        120.   {
        121.       /*

crypto/bn/bn_mod.c:126:11: Call
        124.        */
        125.   
        126.       if (!(BN_mod(r, m, d, ctx)))
                         ^
        127.           return 0;
        128.       if (!r->neg)

crypto/bn/bn_div.c:189:1: Parameter `*rm->d`
          187.    * If 'dv' or 'rm' is NULL, the respective value is not returned.
          188.    */
          189. > int BN_div(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor,
          190.              BN_CTX *ctx)
          191.   {

crypto/bn/bn_div.c:462:9: Call
          460.            */
          461.           int neg = num->neg;
          462.           BN_rshift(rm, snum, norm_shift);
                         ^
          463.           if (!BN_is_zero(rm))
          464.               rm->neg = neg;

crypto/bn/bn_shift.c:169:1: Parameter `*r->d`
            167.   }
            168.   
            169. > int BN_rshift(BIGNUM *r, const BIGNUM *a, int n)
            170.   {
            171.       int i, j, nw, lb, rb;

crypto/bn/bn_shift.c:187:9: Call
            185.       lb = BN_BITS2 - rb;
            186.       if (nw >= a->top || a->top == 0) {
            187.           BN_zero(r);
                           ^
            188.           return (1);
            189.       }

crypto/bn/bn_lib.c:530:1: <Length trace>
528.   }
529.   
530. > int BN_set_word(BIGNUM *a, BN_ULONG w)
531.   {
532.       bn_check_top(a);

crypto/bn/bn_lib.c:530:1: Parameter `*a->d`
              528.   }
              529.   
              530. > int BN_set_word(BIGNUM *a, BN_ULONG w)
              531.   {
              532.       bn_check_top(a);

crypto/bn/bn_lib.c:536:5: Array access: Offset: 0 Size: [0, 8388607] by call to `BN_mod_inverse` 
              534.           return (0);
              535.       a->neg = 0;
              536.       a->d[0] = w;
                         ^
              537.       a->top = (w ? 1 : 0);
              538.       bn_check_top(a);
