crypto/bn/bn_mont.c:351: error: BUFFER_OVERRUN_L3
  Offset: [-1, +oo] Size: [1, +oo] by call to `BN_div`.
Showing all 14 steps of the trace


crypto/bn/bn_mont.c:251:1: Parameter `ctx->stack.depth`
249.   }
250.   
251. > int BN_MONT_CTX_set(BN_MONT_CTX *mont, const BIGNUM *mod, BN_CTX *ctx)
252.   {
253.       int i, ret = 0;

crypto/bn/bn_mont.c:259:5: Call
257.           return 0;
258.   
259.       BN_CTX_start(ctx);
           ^
260.       if ((Ri = BN_CTX_get(ctx)) == NULL)
261.           goto err;

crypto/bn/bn_ctx.c:181:1: Parameter `ctx->stack.depth`
  179.   }
  180.   
  181. > void BN_CTX_start(BN_CTX *ctx)
  182.   {
  183.       CTXDBG_ENTRY("BN_CTX_start", ctx);

crypto/bn/bn_mont.c:351:14: Call
349.                   goto err;       /* Ri-- (mod word size) */
350.           }
351.           if (!BN_div(Ri, NULL, Ri, &tmod, ctx))
                    ^
352.               goto err;
353.           /*

crypto/bn/bn_div.c:190:5: Call
  188.       }
  189.   
  190.       BN_CTX_start(ctx);
             ^
  191.       res = (dv == NULL) ? BN_CTX_get(ctx) : dv;
  192.       tmp = BN_CTX_get(ctx);

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_div.c:411:5: Call
  409.       if (no_branch)
  410.           bn_correct_top(res);
  411.       BN_CTX_end(ctx);
             ^
  412.       return 1;
  413.    err:

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:274:1: <Offset trace>
272.   }
273.   
274. > static unsigned int BN_STACK_pop(BN_STACK *st)
275.   {
276.       return st->indexes[--(st->depth)];

crypto/bn/bn_ctx.c:274:1: Parameter `st->depth`
      272.   }
      273.   
      274. > static unsigned int BN_STACK_pop(BN_STACK *st)
      275.   {
      276.       return st->indexes[--(st->depth)];

crypto/bn/bn_ctx.c:274:1: <Length trace>
272.   }
273.   
274. > static unsigned int BN_STACK_pop(BN_STACK *st)
275.   {
276.       return st->indexes[--(st->depth)];

crypto/bn/bn_ctx.c:274:1: Parameter `*st->indexes`
      272.   }
      273.   
      274. > static unsigned int BN_STACK_pop(BN_STACK *st)
      275.   {
      276.       return st->indexes[--(st->depth)];

crypto/bn/bn_ctx.c:276:12: Array access: Offset: [-1, +oo] Size: [1, +oo] by call to `BN_div` 
      274.   static unsigned int BN_STACK_pop(BN_STACK *st)
      275.   {
      276.       return st->indexes[--(st->depth)];
                        ^
      277.   }
      278.   
