crypto/ec/ec2_mult.c:335: 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:264:1: Parameter `ctx->stack.depth`
262.    * avoiding conditional branches.
263.    */
264. > static int ec_GF2m_montgomery_point_multiply(const EC_GROUP *group,
265.                                                EC_POINT *r,
266.                                                const BIGNUM *scalar,

crypto/ec/ec2_mult.c:292:5: Call
290.        * Since point_multiply is static we can guarantee that ctx != NULL.
291.        */
292.       BN_CTX_start(ctx);
           ^
293.       x1 = BN_CTX_get(ctx);
294.       z1 = BN_CTX_get(ctx);

crypto/bn/bn_ctx.c:236:1: Parameter `ctx->stack.depth`
  234.   }
  235.   
  236. > void BN_CTX_start(BN_CTX *ctx)
  237.   {
  238.       CTXDBG_ENTRY("BN_CTX_start", ctx);

crypto/ec/ec2_mult.c:335:18: Call
333.               BN_consttime_swap(word & mask, x1, x2, bn_get_top(group->field));
334.               BN_consttime_swap(word & mask, z1, z2, bn_get_top(group->field));
335.               if (!gf2m_Madd(group, point->X, x2, z2, x1, z1, ctx))
                        ^
336.                   goto err;
337.               if (!gf2m_Mdouble(group, x1, z1, ctx))

crypto/ec/ec2_mult.c:134:5: Call
  132.   
  133.       /* Since Madd is static we can guarantee that ctx != NULL. */
  134.       BN_CTX_start(ctx);
             ^
  135.       t1 = BN_CTX_get(ctx);
  136.       t2 = BN_CTX_get(ctx);

crypto/bn/bn_ctx.c:236:1: Parameter `*ctx->stack.indexes`
    234.   }
    235.   
    236. > void BN_CTX_start(BN_CTX *ctx)
    237.   {
    238.       CTXDBG_ENTRY("BN_CTX_start", ctx);

crypto/ec/ec2_mult.c:160:5: Call
  158.   
  159.    err:
  160.       BN_CTX_end(ctx);
             ^
  161.       return ret;
  162.   }

crypto/bn/bn_ctx.c:250:1: Parameter `*ctx->stack.indexes`
    248.   }
    249.   
    250. > void BN_CTX_end(BN_CTX *ctx)
    251.   {
    252.       CTXDBG_ENTRY("BN_CTX_end", ctx);

crypto/bn/bn_ctx.c:256:27: Call
    254.           ctx->err_stack--;
    255.       else {
    256.           unsigned int fp = BN_STACK_pop(&ctx->stack);
                                     ^
    257.           /* Does this stack frame have anything to release? */
    258.           if (fp < ctx->used)

crypto/bn/bn_ctx.c:326:1: <Offset trace>
324.   }
325.   
326. > static unsigned int BN_STACK_pop(BN_STACK *st)
327.   {
328.       return st->indexes[--(st->depth)];

crypto/bn/bn_ctx.c:326:1: Parameter `st->depth`
      324.   }
      325.   
      326. > static unsigned int BN_STACK_pop(BN_STACK *st)
      327.   {
      328.       return st->indexes[--(st->depth)];

crypto/bn/bn_ctx.c:326:1: <Length trace>
324.   }
325.   
326. > static unsigned int BN_STACK_pop(BN_STACK *st)
327.   {
328.       return st->indexes[--(st->depth)];

crypto/bn/bn_ctx.c:326:1: Parameter `*st->indexes`
      324.   }
      325.   
      326. > static unsigned int BN_STACK_pop(BN_STACK *st)
      327.   {
      328.       return st->indexes[--(st->depth)];

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