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


crypto/bn/bntest.c:1271:1: Parameter `ctx->stack.depth`
1269.   }
1270.   
1271. > int test_gf2m_mod_mul(BIO *bp, BN_CTX *ctx)
1272.   {
1273.       BIGNUM *a, *b[2], *c, *d, *e, *f, *g, *h;

crypto/bn/bntest.c:1296:13: Call
1294.           BN_bntest_rand(d, 1024, 0, 0);
1295.           for (j = 0; j < 2; j++) {
1296.               BN_GF2m_mod_mul(e, a, c, b[j], ctx);
                    ^
1297.   # if 0                          /* make test uses ouput in bc but bc can't
1298.                                    * handle GF(2^m) arithmetic */

crypto/bn/bn_gf2m.c:545:1: Parameter `ctx->stack.depth`
  543.    * BN_GF2m_mod_mul_arr function.
  544.    */
  545. > int BN_GF2m_mod_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,
  546.                       const BIGNUM *p, BN_CTX *ctx)
  547.   {

crypto/bn/bn_gf2m.c:561:11: Call
  559.           goto err;
  560.       }
  561.       ret = BN_GF2m_mod_mul_arr(r, a, b, arr, ctx);
                   ^
  562.       bn_check_top(r);
  563.    err:

crypto/bn/bn_gf2m.c:490:1: Parameter `ctx->stack.depth`
    488.    * the result in r.  r could be a or b; a could be b.
    489.    */
    490. > int BN_GF2m_mod_mul_arr(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,
    491.                           const int p[], BN_CTX *ctx)
    492.   {

crypto/bn/bn_gf2m.c:504:5: Call
    502.       }
    503.   
    504.       BN_CTX_start(ctx);
               ^
    505.       if ((s = BN_CTX_get(ctx)) == NULL)
    506.           goto err;

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:534:5: Call
    532.   
    533.    err:
    534.       BN_CTX_end(ctx);
               ^
    535.       return ret;
    536.   }

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_mul` 
        351.   static unsigned int BN_STACK_pop(BN_STACK *st)
        352.   {
        353.       return st->indexes[--(st->depth)];
                          ^
        354.   }
        355.   
