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


test/bntest.c:1453:1: Parameter `ctx->stack.depth`
1451.   }
1452.   
1453. > int test_gf2m_mod_div(BIO *bp, BN_CTX *ctx)
1454.   {
1455.       BIGNUM *a, *b[2], *c, *d, *e, *f;

test/bntest.c:1475:13: Call
1473.           BN_bntest_rand(c, 512, 0, 0);
1474.           for (j = 0; j < 2; j++) {
1475.               BN_GF2m_mod_div(d, a, c, b[j], ctx);
                    ^
1476.               BN_GF2m_mod_mul(e, d, c, b[j], ctx);
1477.               BN_GF2m_mod_div(f, a, e, b[j], ctx);

crypto/bn/bn_gf2m.c:760:1: Parameter `ctx->stack.depth`
  758.    * or y, x could equal y.
  759.    */
  760. > int BN_GF2m_mod_div(BIGNUM *r, const BIGNUM *y, const BIGNUM *x,
  761.                       const BIGNUM *p, BN_CTX *ctx)
  762.   {

crypto/bn/bn_gf2m.c:770:5: Call
  768.       bn_check_top(p);
  769.   
  770.       BN_CTX_start(ctx);
             ^
  771.       xinv = BN_CTX_get(ctx);
  772.       if (xinv == NULL)

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:775:10: Call
  773.           goto err;
  774.   
  775.       if (!BN_GF2m_mod_inv(xinv, x, p, ctx))
                  ^
  776.           goto err;
  777.       if (!BN_GF2m_mod_mul(r, y, xinv, p, ctx))

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

crypto/bn/bn_gf2m.c:568:5: Call
    566.       bn_check_top(p);
    567.   
    568.       BN_CTX_start(ctx);
               ^
    569.   
    570.       if ((b = BN_CTX_get(ctx)) == NULL)

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:724:5: Call
    722.       bn_correct_top(v);
    723.   # endif
    724.       BN_CTX_end(ctx);
               ^
    725.       return ret;
    726.   }

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_div` 
        271.   static unsigned int BN_STACK_pop(BN_STACK *st)
        272.   {
        273.       return st->indexes[--(st->depth)];
                          ^
        274.   }
        275.   
