test/ectest.c:95: error: BUFFER_OVERRUN_L3
  Offset: [-1, +oo] Size: [1, +oo] by call to `BN_mul`.
Showing all 13 steps of the trace


test/ectest.c:68:13: Call
66.           || !TEST_true(EC_POINT_mul(group, Q, order, NULL, NULL, ctx))
67.           || !TEST_true(EC_POINT_is_at_infinity(group, Q))
68.           || !TEST_true(EC_GROUP_precompute_mult(group, ctx))
                  ^
69.           || !TEST_true(EC_POINT_mul(group, Q, order, NULL, NULL, ctx))
70.           || !TEST_true(EC_POINT_is_at_infinity(group, Q)))

crypto/ec/ec_lib.c:941:1: Parameter `ctx->stack.depth`
  939.   }
  940.   
  941. > int EC_GROUP_precompute_mult(EC_GROUP *group, BN_CTX *ctx)
  942.   {
  943.       if (group->meth->mul == 0)

test/ectest.c:95:17: Call
93.   
94.               /* n2 = (1 - order) * (1 + order) = 1 - order^2 */
95.               || !TEST_true(BN_mul(n2, n1, n2, ctx))
                      ^
96.               || !TEST_true(EC_POINT_mul(group, Q, NULL, P, n2, ctx))
97.               || !TEST_int_eq(0, EC_POINT_cmp(group, Q, P, ctx)))

crypto/bn/bn_mul.c:521:5: Call
  519.       top = al + bl;
  520.   
  521.       BN_CTX_start(ctx);
             ^
  522.       if ((r == a) || (r == b)) {
  523.           if ((rr = BN_CTX_get(ctx)) == 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_mul.c:646:5: Call
  644.    err:
  645.       bn_check_top(r);
  646.       BN_CTX_end(ctx);
             ^
  647.       return (ret);
  648.   }

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