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


crypto/bn/bn_gf2m.c:1112:1: Parameter `ctx->stack.depth`
1110.    * 0. Uses algorithms A.4.7 and A.4.6 from IEEE P1363.
1111.    */
1112. > int BN_GF2m_mod_solve_quad_arr(BIGNUM *r, const BIGNUM *a_, const int p[],
1113.                                  BN_CTX *ctx)
1114.   {

crypto/bn/bn_gf2m.c:1126:5: Call
1124.       }
1125.   
1126.       BN_CTX_start(ctx);
            ^
1127.       a = BN_CTX_get(ctx);
1128.       z = BN_CTX_get(ctx);

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

crypto/bn/bn_gf2m.c:1147:18: Call
1145.               goto err;
1146.           for (j = 1; j <= (p[0] - 1) / 2; j++) {
1147.               if (!BN_GF2m_mod_sqr_arr(z, z, p, ctx))
                         ^
1148.                   goto err;
1149.               if (!BN_GF2m_mod_sqr_arr(z, z, p, ctx))

crypto/bn/bn_gf2m.c:575:5: Call
  573.   
  574.       bn_check_top(a);
  575.       BN_CTX_start(ctx);
             ^
  576.       if ((s = BN_CTX_get(ctx)) == NULL)
  577.           goto err;

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

crypto/bn/bn_gf2m.c:593:5: Call
  591.       ret = 1;
  592.    err:
  593.       BN_CTX_end(ctx);
             ^
  594.       return ret;
  595.   }

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

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

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

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

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

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

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