crypto/ec/ec2_mult.c:292: error: BUFFER_OVERRUN_L3
  Offset: [-1, +oo] Size: [1, +oo] by call to `gf2m_Madd`.
Showing all 14 steps of the trace


crypto/ec/ec2_mult.c:219:1: Parameter `ctx->stack.depth`
217.    * avoiding conditional branches.
218.    */
219. > static int ec_GF2m_montgomery_point_multiply(const EC_GROUP *group,
220.                                                EC_POINT *r,
221.                                                const BIGNUM *scalar,

crypto/ec/ec2_mult.c:247:5: Call
245.        * Since point_multiply is static we can guarantee that ctx != NULL.
246.        */
247.       BN_CTX_start(ctx);
           ^
248.       x1 = BN_CTX_get(ctx);
249.       z1 = BN_CTX_get(ctx);

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

crypto/ec/ec2_mult.c:292:18: Call
290.               BN_consttime_swap(word & mask, x1, x2, group_top);
291.               BN_consttime_swap(word & mask, z1, z2, group_top);
292.               if (!gf2m_Madd(group, point->X, x2, z2, x1, z1, ctx))
                        ^
293.                   goto err;
294.               if (!gf2m_Mdouble(group, x1, z1, ctx))

crypto/ec/ec2_mult.c:89:5: Call
  87.   
  88.       /* Since Madd is static we can guarantee that ctx != NULL. */
  89.       BN_CTX_start(ctx);
            ^
  90.       t1 = BN_CTX_get(ctx);
  91.       t2 = BN_CTX_get(ctx);

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/ec/ec2_mult.c:115:5: Call
  113.   
  114.    err:
  115.       BN_CTX_end(ctx);
             ^
  116.       return ret;
  117.   }

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:271:1: <Offset trace>
269.   }
270.   
271. > static unsigned int BN_STACK_pop(BN_STACK *st)
272.   {
273.       return st->indexes[--(st->depth)];

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

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

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

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