crypto/ec/ecdsa_ossl.c:243: error: BUFFER_OVERRUN_L3
  Offset: [-1, +oo] Size: [1, +oo] by call to `bn_to_mont_fixed_top`.
Showing all 15 steps of the trace


crypto/ec/ecdsa_ossl.c:223:18: Call
221.       do {
222.           if (in_kinv == NULL || in_r == NULL) {
223.               if (!ecdsa_sign_setup(eckey, ctx, &kinv, &ret->r, dgst, dgst_len)) {
                        ^
224.                   ECerr(EC_F_OSSL_ECDSA_SIGN_SIG, ERR_R_ECDSA_LIB);
225.                   goto err;

crypto/ec/ecdsa_ossl.c:33:1: Parameter `ctx_in->stack.depth`
  31.   }
  32.   
  33. > static int ecdsa_sign_setup(EC_KEY *eckey, BN_CTX *ctx_in,
  34.                               BIGNUM **kinvp, BIGNUM **rp,
  35.                               const unsigned char *dgst, int dlen)

crypto/ec/ecdsa_ossl.c:243:14: Call
241.            * below, returns user-visible value with removed zero padding.
242.            */
243.           if (!bn_to_mont_fixed_top(s, ret->r, group->mont_data, ctx)
                    ^
244.               || !bn_mul_mont_fixed_top(s, s, priv_key, group->mont_data, ctx)) {
245.               ECerr(EC_F_OSSL_ECDSA_SIGN_SIG, ERR_R_BN_LIB);

crypto/bn/bn_mont.c:210:1: Parameter `ctx->stack.depth`
  208.   }
  209.   
  210. > int bn_to_mont_fixed_top(BIGNUM *r, const BIGNUM *a, BN_MONT_CTX *mont,
  211.                            BN_CTX *ctx)
  212.   {

crypto/bn/bn_mont.c:213:12: Call
  211.                            BN_CTX *ctx)
  212.   {
  213.       return bn_mul_mont_fixed_top(r, a, &(mont->RR), mont, ctx);
                    ^
  214.   }
  215.   

crypto/bn/bn_mont.c:60:5: Call
    58.           return 0;
    59.   
    60.       BN_CTX_start(ctx);
              ^
    61.       tmp = BN_CTX_get(ctx);
    62.       if (tmp == NULL)

crypto/bn/bn_ctx.c:181:1: Parameter `*ctx->stack.indexes`
      179.   }
      180.   
      181. > void BN_CTX_start(BN_CTX *ctx)
      182.   {
      183.       CTXDBG_ENTRY("BN_CTX_start", ctx);

crypto/bn/bn_mont.c:83:5: Call
    81.       ret = 1;
    82.    err:
    83.       BN_CTX_end(ctx);
              ^
    84.       return ret;
    85.   }

crypto/bn/bn_ctx.c:195:1: Parameter `*ctx->stack.indexes`
      193.   }
      194.   
      195. > void BN_CTX_end(BN_CTX *ctx)
      196.   {
      197.       CTXDBG_ENTRY("BN_CTX_end", ctx);

crypto/bn/bn_ctx.c:201:27: Call
      199.           ctx->err_stack--;
      200.       else {
      201.           unsigned int fp = BN_STACK_pop(&ctx->stack);
                                       ^
      202.           /* Does this stack frame have anything to release? */
      203.           if (fp < ctx->used)

crypto/bn/bn_ctx.c:274:1: <Offset trace>
272.   }
273.   
274. > static unsigned int BN_STACK_pop(BN_STACK *st)
275.   {
276.       return st->indexes[--(st->depth)];

crypto/bn/bn_ctx.c:274:1: Parameter `st->depth`
        272.   }
        273.   
        274. > static unsigned int BN_STACK_pop(BN_STACK *st)
        275.   {
        276.       return st->indexes[--(st->depth)];

crypto/bn/bn_ctx.c:274:1: <Length trace>
272.   }
273.   
274. > static unsigned int BN_STACK_pop(BN_STACK *st)
275.   {
276.       return st->indexes[--(st->depth)];

crypto/bn/bn_ctx.c:274:1: Parameter `*st->indexes`
        272.   }
        273.   
        274. > static unsigned int BN_STACK_pop(BN_STACK *st)
        275.   {
        276.       return st->indexes[--(st->depth)];

crypto/bn/bn_ctx.c:276:12: Array access: Offset: [-1, +oo] Size: [1, +oo] by call to `bn_to_mont_fixed_top` 
        274.   static unsigned int BN_STACK_pop(BN_STACK *st)
        275.   {
        276.       return st->indexes[--(st->depth)];
                          ^
        277.   }
        278.   
