test/bntest.c:1522: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned32 by call to `BN_GF2m_mod_mul`.
Showing all 17 steps of the trace


test/bntest.c:1497:1: Parameter `ctx->stack.depth`
1495.   }
1496.   
1497. > int test_gf2m_mod_exp(BIO *bp, BN_CTX *ctx)
1498.   {
1499.       BIGNUM *a, *b[2], *c, *d, *e, *f;

test/bntest.c:1520:13: Call
1518.           BN_bntest_rand(d, 512, 0, 0);
1519.           for (j = 0; j < 2; j++) {
1520.               BN_GF2m_mod_exp(e, a, c, b[j], ctx);
                    ^
1521.               BN_GF2m_mod_exp(f, a, d, b[j], ctx);
1522.               BN_GF2m_mod_mul(e, e, f, b[j], ctx);

crypto/bn/bn_gf2m.c:955:1: Parameter `ctx->stack.depth`
  953.    * for best performance, use the BN_GF2m_mod_exp_arr function.
  954.    */
  955. > int BN_GF2m_mod_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,
  956.                       const BIGNUM *p, BN_CTX *ctx)
  957.   {

test/bntest.c:1521:13: Call
1519.           for (j = 0; j < 2; j++) {
1520.               BN_GF2m_mod_exp(e, a, c, b[j], ctx);
1521.               BN_GF2m_mod_exp(f, a, d, b[j], ctx);
                    ^
1522.               BN_GF2m_mod_mul(e, e, f, b[j], ctx);
1523.               BN_add(f, c, d);

crypto/bn/bn_gf2m.c:955:1: Parameter `ctx->stack.depth`
  953.    * for best performance, use the BN_GF2m_mod_exp_arr function.
  954.    */
  955. > int BN_GF2m_mod_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,
  956.                       const BIGNUM *p, BN_CTX *ctx)
  957.   {

test/bntest.c:1522:13: Call
1520.               BN_GF2m_mod_exp(e, a, c, b[j], ctx);
1521.               BN_GF2m_mod_exp(f, a, d, b[j], ctx);
1522.               BN_GF2m_mod_mul(e, e, f, b[j], ctx);
                    ^
1523.               BN_add(f, c, d);
1524.               BN_GF2m_mod_exp(f, a, f, b[j], ctx);

crypto/bn/bn_gf2m.c:473:1: Parameter `ctx->stack.depth`
  471.    * BN_GF2m_mod_mul_arr function.
  472.    */
  473. > int BN_GF2m_mod_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,
  474.                       const BIGNUM *p, BN_CTX *ctx)
  475.   {

crypto/bn/bn_gf2m.c:489:11: Call
  487.           goto err;
  488.       }
  489.       ret = BN_GF2m_mod_mul_arr(r, a, b, arr, ctx);
                   ^
  490.       bn_check_top(r);
  491.    err:

crypto/bn/bn_gf2m.c:418:1: Parameter `ctx->stack.depth`
    416.    * the result in r.  r could be a or b; a could be b.
    417.    */
    418. > int BN_GF2m_mod_mul_arr(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,
    419.                           const int p[], BN_CTX *ctx)
    420.   {

crypto/bn/bn_gf2m.c:432:5: Call
    430.       }
    431.   
    432.       BN_CTX_start(ctx);
               ^
    433.       if ((s = BN_CTX_get(ctx)) == NULL)
    434.           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_gf2m.c:462:5: Call
    460.   
    461.    err:
    462.       BN_CTX_end(ctx);
               ^
    463.       return ret;
    464.   }

crypto/bn/bn_ctx.c:195:1: Parameter `ctx->stack.depth`
      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: <LHS 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:273:12: Binary operation: ([0, +oo] - 1):unsigned32 by call to `BN_GF2m_mod_mul` 
        271.   static unsigned int BN_STACK_pop(BN_STACK *st)
        272.   {
        273.       return st->indexes[--(st->depth)];
                          ^
        274.   }
        275.   
