crypto/ec/ecp_oct.c:116: error: BUFFER_OVERRUN_L3
  Offset: [-1, +oo] Size: [1, +oo] by call to `BN_mod_mul`.
Showing all 18 steps of the trace


crypto/ec/ecp_oct.c:70:1: Parameter `ctx->stack.depth`
68.   #include "ec_lcl.h"
69.   
70. > int ec_GFp_simple_set_compressed_coordinates(const EC_GROUP *group,
71.                                                EC_POINT *point,
72.                                                const BIGNUM *x_, int y_bit,

crypto/ec/ecp_oct.c:90:5: Call
88.       y_bit = (y_bit != 0);
89.   
90.       BN_CTX_start(ctx);
          ^
91.       tmp1 = BN_CTX_get(ctx);
92.       tmp2 = BN_CTX_get(ctx);

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/ec/ecp_oct.c:116:14: Call
114.           if (!BN_mod_sqr(tmp2, x_, group->field, ctx))
115.               goto err;
116.           if (!BN_mod_mul(tmp1, tmp2, x_, group->field, ctx))
                    ^
117.               goto err;
118.       }

crypto/bn/bn_mod.c:178:1: Parameter `ctx->stack.depth`
  176.   
  177.   /* slow but works */
  178. > int BN_mod_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m,
  179.                  BN_CTX *ctx)
  180.   {

crypto/bn/bn_mod.c:188:5: Call
  186.       bn_check_top(m);
  187.   
  188.       BN_CTX_start(ctx);
             ^
  189.       if ((t = BN_CTX_get(ctx)) == NULL)
  190.           goto err;

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_mod.c:192:14: Call
  190.           goto err;
  191.       if (a == b) {
  192.           if (!BN_sqr(t, a, ctx))
                      ^
  193.               goto err;
  194.       } else {

crypto/bn/bn_sqr.c:80:5: Call
    78.       }
    79.   
    80.       BN_CTX_start(ctx);
              ^
    81.       rr = (a != r) ? r : BN_CTX_get(ctx);
    82.       tmp = BN_CTX_get(ctx);

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_sqr.c:147:5: Call
    145.       bn_check_top(rr);
    146.       bn_check_top(tmp);
    147.       BN_CTX_end(ctx);
               ^
    148.       return (ret);
    149.   }

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_mod_mul` 
        325.   static unsigned int BN_STACK_pop(BN_STACK *st)
        326.   {
        327.       return st->indexes[--(st->depth)];
                          ^
        328.   }
        329.   
