crypto/bn/bn_exp.c:811: error: BUFFER_OVERRUN_L3
  Offset: [-1, +oo] Size: [1, +oo] by call to `BN_to_montgomery`.
Showing all 20 steps of the trace


crypto/bn/bn_exp.c:654:1: Parameter `ctx->stack.depth`
652.    * http://www.daemonology.net/hyperthreading-considered-harmful/)
653.    */
654. > int BN_mod_exp_mont_consttime(BIGNUM *rr, const BIGNUM *a, const BIGNUM *p,
655.                                 const BIGNUM *m, BN_CTX *ctx,
656.                                 BN_MONT_CTX *in_mont)

crypto/bn/bn_exp.c:694:5: Call
692.       }
693.   
694.       BN_CTX_start(ctx);
           ^
695.   
696.       /*

crypto/bn/bn_ctx.c:235:1: Parameter `ctx->stack.depth`
  233.   }
  234.   
  235. > void BN_CTX_start(BN_CTX *ctx)
  236.   {
  237.       CTXDBG_ENTRY("BN_CTX_start", ctx);

crypto/bn/bn_exp.c:811:17: Call
809.           if (!BN_to_montgomery(&am, &am, mont, ctx))
810.               goto err;
811.       } else if (!BN_to_montgomery(&am, a, mont, ctx))
                       ^
812.           goto err;
813.   

crypto/bn/bn_lib.c:1000:1: Parameter `ctx->stack.depth`
  998.   }
  999.   
  1000. > int BN_to_montgomery(BIGNUM *r, const BIGNUM *a, BN_MONT_CTX *mont,
  1001.                        BN_CTX *ctx)
  1002.   {

crypto/bn/bn_lib.c:1003:12: Call
  1001.                        BN_CTX *ctx)
  1002.   {
  1003.       return BN_mod_mul_montgomery(r, a, &(mont->RR), mont, ctx);
                     ^
  1004.   }
  1005.   

crypto/bn/bn_mont.c:127:1: Parameter `ctx->stack.depth`
    125.   #endif
    126.   
    127. > int BN_mod_mul_montgomery(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,
    128.                             BN_MONT_CTX *mont, BN_CTX *ctx)
    129.   {

crypto/bn/bn_mont.c:147:5: Call
    145.   #endif
    146.   
    147.       BN_CTX_start(ctx);
               ^
    148.       tmp = BN_CTX_get(ctx);
    149.       if (tmp == NULL)

crypto/bn/bn_ctx.c:235:1: Parameter `ctx->stack.depth`
      233.   }
      234.   
      235. > void BN_CTX_start(BN_CTX *ctx)
      236.   {
      237.       CTXDBG_ENTRY("BN_CTX_start", ctx);

crypto/bn/bn_mont.c:157:14: Call
    155.               goto err;
    156.       } else {
    157.           if (!BN_mul(tmp, a, b, ctx))
                        ^
    158.               goto err;
    159.       }

crypto/bn/bn_mul.c:908:5: Call
      906.       top = al + bl;
      907.   
      908.       BN_CTX_start(ctx);
                 ^
      909.       if ((r == a) || (r == b)) {
      910.           if ((rr = BN_CTX_get(ctx)) == NULL)

crypto/bn/bn_ctx.c:235:1: Parameter `*ctx->stack.indexes`
        233.   }
        234.   
        235. > void BN_CTX_start(BN_CTX *ctx)
        236.   {
        237.       CTXDBG_ENTRY("BN_CTX_start", ctx);

crypto/bn/bn_mul.c:1032:5: Call
      1030.    err:
      1031.       bn_check_top(r);
      1032.       BN_CTX_end(ctx);
                  ^
      1033.       return (ret);
      1034.   }

crypto/bn/bn_ctx.c:249:1: Parameter `*ctx->stack.indexes`
        247.   }
        248.   
        249. > void BN_CTX_end(BN_CTX *ctx)
        250.   {
        251.       CTXDBG_ENTRY("BN_CTX_end", ctx);

crypto/bn/bn_ctx.c:255:27: Call
        253.           ctx->err_stack--;
        254.       else {
        255.           unsigned int fp = BN_STACK_pop(&ctx->stack);
                                         ^
        256.           /* Does this stack frame have anything to release? */
        257.           if (fp < ctx->used)

crypto/bn/bn_ctx.c:325:1: <Offset trace>
323.   }
324.   
325. > static unsigned int BN_STACK_pop(BN_STACK *st)
326.   {
327.       return st->indexes[--(st->depth)];

crypto/bn/bn_ctx.c:325:1: Parameter `st->depth`
          323.   }
          324.   
          325. > static unsigned int BN_STACK_pop(BN_STACK *st)
          326.   {
          327.       return st->indexes[--(st->depth)];

crypto/bn/bn_ctx.c:325:1: <Length trace>
323.   }
324.   
325. > static unsigned int BN_STACK_pop(BN_STACK *st)
326.   {
327.       return st->indexes[--(st->depth)];

crypto/bn/bn_ctx.c:325:1: Parameter `*st->indexes`
          323.   }
          324.   
          325. > static unsigned int BN_STACK_pop(BN_STACK *st)
          326.   {
          327.       return st->indexes[--(st->depth)];

crypto/bn/bn_ctx.c:327:12: Array access: Offset: [-1, +oo] Size: [1, +oo] by call to `BN_to_montgomery` 
          325.   static unsigned int BN_STACK_pop(BN_STACK *st)
          326.   {
          327.       return st->indexes[--(st->depth)];
                            ^
          328.   }
          329.   
