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


test/bntest.c:1198:1: Parameter `ctx->stack.depth`
1196.   }
1197.   
1198. > int test_exp(BIO *bp, BN_CTX *ctx)
1199.   {
1200.       BIGNUM *a, *b, *d, *e, *one;

test/bntest.c:1214:13: Call
1212.           BN_bntest_rand(b, 2 + i, 0, 0);
1213.   
1214.           if (BN_exp(d, a, b, ctx) <= 0)
                    ^
1215.               return (0);
1216.   

crypto/bn/bn_exp.c:41:1: Parameter `ctx->stack.depth`
  39.   
  40.   /* this one works - simple but works */
  41. > int BN_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx)
  42.   {
  43.       int i, bits, ret = 0;

test/bntest.c:1229:13: Call
1227.           BN_one(e);
1228.           for (; !BN_is_zero(b); BN_sub(b, b, one))
1229.               BN_mul(e, e, a, ctx);
                    ^
1230.           BN_sub(e, e, d);
1231.           if (!BN_is_zero(e)) {

crypto/bn/bn_mul.c:854:5: Call
  852.       top = al + bl;
  853.   
  854.       BN_CTX_start(ctx);
             ^
  855.       if ((r == a) || (r == b)) {
  856.           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:979:5: Call
  977.    err:
  978.       bn_check_top(r);
  979.       BN_CTX_end(ctx);
             ^
  980.       return (ret);
  981.   }

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.   
