crypto/ec/ec2_mult.c:347: error: BUFFER_OVERRUN_L3
  Offset: [-1, +oo] Size: [1, +oo] by call to `gf2m_Mxy`.
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:347:9: Call
345.   
346.       /* convert out of "projective" coordinates */
347.       i = gf2m_Mxy(group, point->X, point->Y, x1, z1, x2, z2, ctx);
               ^
348.       if (i == 0)
349.           goto err;

crypto/ec/ec2_mult.c:196:5: Call
  194.   
  195.       /* Since Mxy is static we can guarantee that ctx != NULL. */
  196.       BN_CTX_start(ctx);
             ^
  197.       t3 = BN_CTX_get(ctx);
  198.       t4 = 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:250:5: Call
  248.   
  249.    err:
  250.       BN_CTX_end(ctx);
             ^
  251.       return ret;
  252.   }

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_Mxy` 
      326.   static unsigned int BN_STACK_pop(BN_STACK *st)
      327.   {
      328.       return st->indexes[--(st->depth)];
                        ^
      329.   }
      330.   
