test/bntest.c:500: error: BUFFER_OVERRUN_L3
  Offset: [-1, +oo] Size: [1, +oo] by call to `BN_GF2m_mod_mul`.
Showing all 19 steps of the trace


test/bntest.c:500:13: Call
498.           BN_bntest_rand(d, 1024, 0, 0);
499.           for (j = 0; j < 2; j++) {
500.               BN_GF2m_mod_mul(e, a, c, b[j], ctx);
                   ^
501.               BN_GF2m_add(f, a, d);
502.               BN_GF2m_mod_mul(g, f, c, b[j], ctx);

crypto/bn/bn_gf2m.c:473:1: Parameter `ctx->stack.depth`
  471.    * BN_GF2m_mod_mul_arr function.
  472.    */
  473. > int BN_GF2m_mod_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,
  474.                       const BIGNUM *p, BN_CTX *ctx)
  475.   {

test/bntest.c:502:13: Call
500.               BN_GF2m_mod_mul(e, a, c, b[j], ctx);
501.               BN_GF2m_add(f, a, d);
502.               BN_GF2m_mod_mul(g, f, c, b[j], ctx);
                   ^
503.               BN_GF2m_mod_mul(h, d, c, b[j], ctx);
504.               BN_GF2m_add(f, e, g);

crypto/bn/bn_gf2m.c:473:1: Parameter `ctx->stack.depth`
  471.    * BN_GF2m_mod_mul_arr function.
  472.    */
  473. > int BN_GF2m_mod_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,
  474.                       const BIGNUM *p, BN_CTX *ctx)
  475.   {

test/bntest.c:503:13: Call
501.               BN_GF2m_add(f, a, d);
502.               BN_GF2m_mod_mul(g, f, c, b[j], ctx);
503.               BN_GF2m_mod_mul(h, d, c, b[j], ctx);
                   ^
504.               BN_GF2m_add(f, e, g);
505.               BN_GF2m_add(f, f, h);

crypto/bn/bn_gf2m.c:473:1: Parameter `ctx->stack.depth`
  471.    * BN_GF2m_mod_mul_arr function.
  472.    */
  473. > int BN_GF2m_mod_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,
  474.                       const BIGNUM *p, BN_CTX *ctx)
  475.   {

test/bntest.c:500:13: Call
498.           BN_bntest_rand(d, 1024, 0, 0);
499.           for (j = 0; j < 2; j++) {
500.               BN_GF2m_mod_mul(e, a, c, b[j], ctx);
                   ^
501.               BN_GF2m_add(f, a, d);
502.               BN_GF2m_mod_mul(g, f, c, b[j], ctx);

crypto/bn/bn_gf2m.c:473:1: Parameter `ctx->stack.depth`
  471.    * BN_GF2m_mod_mul_arr function.
  472.    */
  473. > int BN_GF2m_mod_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,
  474.                       const BIGNUM *p, BN_CTX *ctx)
  475.   {

crypto/bn/bn_gf2m.c:489:11: Call
  487.           goto err;
  488.       }
  489.       ret = BN_GF2m_mod_mul_arr(r, a, b, arr, ctx);
                   ^
  490.       bn_check_top(r);
  491.    err:

crypto/bn/bn_gf2m.c:432:5: Call
    430.       }
    431.   
    432.       BN_CTX_start(ctx);
               ^
    433.       if ((s = BN_CTX_get(ctx)) == NULL)
    434.           goto err;

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_gf2m.c:462:5: Call
    460.   
    461.    err:
    462.       BN_CTX_end(ctx);
               ^
    463.       return ret;
    464.   }

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 `BN_GF2m_mod_mul` 
        271.   static unsigned int BN_STACK_pop(BN_STACK *st)
        272.   {
        273.       return st->indexes[--(st->depth)];
                          ^
        274.   }
        275.   
