crypto/bn/bntest.c:1413: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned32 by call to `BN_GF2m_mod_inv`.
Showing all 11 steps of the trace


crypto/bn/bntest.c:1394:1: Parameter `ctx->stack.depth`
1392.   }
1393.   
1394. > int test_gf2m_mod_inv(BIO *bp, BN_CTX *ctx)
1395.   {
1396.       BIGNUM *a, *b[2], *c, *d;

crypto/bn/bntest.c:1413:13: Call
1411.           BN_bntest_rand(a, 512, 0, 0);
1412.           for (j = 0; j < 2; j++) {
1413.               BN_GF2m_mod_inv(c, a, b[j], ctx);
                    ^
1414.               BN_GF2m_mod_mul(d, a, c, b[j], ctx);
1415.   # if 0                          /* make test uses ouput in bc but bc can't

crypto/bn/bn_gf2m.c:634:1: Parameter `ctx->stack.depth`
  632.    * Curve Cryptography Over Binary Fields".
  633.    */
  634. > int BN_GF2m_mod_inv(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx)
  635.   {
  636.       BIGNUM *b, *c = NULL, *u = NULL, *v = NULL, *tmp;

crypto/bn/bn_gf2m.c:642:5: Call
  640.       bn_check_top(p);
  641.   
  642.       BN_CTX_start(ctx);
             ^
  643.   
  644.       if ((b = BN_CTX_get(ctx)) == NULL)

crypto/bn/bn_ctx.c:253:1: Parameter `ctx->stack.depth`
    251.   }
    252.   
    253. > void BN_CTX_start(BN_CTX *ctx)
    254.   {
    255.       CTXDBG_ENTRY("BN_CTX_start", ctx);

crypto/bn/bn_gf2m.c:790:5: Call
  788.       bn_correct_top(v);
  789.   # endif
  790.       BN_CTX_end(ctx);
             ^
  791.       return ret;
  792.   }

crypto/bn/bn_ctx.c:267:1: Parameter `ctx->stack.depth`
    265.   }
    266.   
    267. > void BN_CTX_end(BN_CTX *ctx)
    268.   {
    269.       CTXDBG_ENTRY("BN_CTX_end", ctx);

crypto/bn/bn_ctx.c:273:27: Call
    271.           ctx->err_stack--;
    272.       else {
    273.           unsigned int fp = BN_STACK_pop(&ctx->stack);
                                     ^
    274.           /* Does this stack frame have anything to release? */
    275.           if (fp < ctx->used)

crypto/bn/bn_ctx.c:351:1: <LHS trace>
349.   }
350.   
351. > static unsigned int BN_STACK_pop(BN_STACK *st)
352.   {
353.       return st->indexes[--(st->depth)];

crypto/bn/bn_ctx.c:351:1: Parameter `st->depth`
      349.   }
      350.   
      351. > static unsigned int BN_STACK_pop(BN_STACK *st)
      352.   {
      353.       return st->indexes[--(st->depth)];

crypto/bn/bn_ctx.c:353:12: Binary operation: ([0, +oo] - 1):unsigned32 by call to `BN_GF2m_mod_inv` 
      351.   static unsigned int BN_STACK_pop(BN_STACK *st)
      352.   {
      353.       return st->indexes[--(st->depth)];
                        ^
      354.   }
      355.   
