test/ec_internal_test.c:174: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned32 by call to `group_field_tests`.
Showing all 16 steps of the trace


test/ec_internal_test.c:174:13: Call
172.       if (!TEST_ptr(group = EC_GROUP_new_by_curve_name(nid))
173.           || !TEST_ptr(ctx = BN_CTX_new())
174.           || !group_field_tests(group, ctx))
                   ^
175.           goto err;
176.   

test/ec_internal_test.c:20:1: Parameter `ctx->stack.depth`
  18.   
  19.   /* sanity checks field_inv function pointer in EC_METHOD */
  20. > static int group_field_tests(const EC_GROUP *group, BN_CTX *ctx)
  21.   {
  22.       BIGNUM *a = NULL, *b = NULL, *c = NULL;

test/ec_internal_test.c:28:5: Call
  26.           return 1;
  27.   
  28.       BN_CTX_start(ctx);
            ^
  29.       a = BN_CTX_get(ctx);
  30.       b = BN_CTX_get(ctx);

crypto/bn/bn_ctx.c:171:1: Parameter `ctx->stack.depth`
    169.   }
    170.   
    171. > void BN_CTX_start(BN_CTX *ctx)
    172.   {
    173.       CTXDBG("ENTER BN_CTX_start()", ctx);

test/ec_internal_test.c:29:9: Call
  27.   
  28.       BN_CTX_start(ctx);
  29.       a = BN_CTX_get(ctx);
                ^
  30.       b = BN_CTX_get(ctx);
  31.       if (!TEST_ptr(c = BN_CTX_get(ctx))

crypto/bn/bn_ctx.c:202:1: Parameter `ctx->stack.depth`
    200.   }
    201.   
    202. > BIGNUM *BN_CTX_get(BN_CTX *ctx)
    203.   {
    204.       BIGNUM *ret;

test/ec_internal_test.c:30:9: Call
  28.       BN_CTX_start(ctx);
  29.       a = BN_CTX_get(ctx);
  30.       b = BN_CTX_get(ctx);
                ^
  31.       if (!TEST_ptr(c = BN_CTX_get(ctx))
  32.           /* 1/1 = 1 */

crypto/bn/bn_ctx.c:202:1: Parameter `ctx->stack.depth`
    200.   }
    201.   
    202. > BIGNUM *BN_CTX_get(BN_CTX *ctx)
    203.   {
    204.       BIGNUM *ret;

test/ec_internal_test.c:31:10: Call
  29.       a = BN_CTX_get(ctx);
  30.       b = BN_CTX_get(ctx);
  31.       if (!TEST_ptr(c = BN_CTX_get(ctx))
                 ^
  32.           /* 1/1 = 1 */
  33.           || !TEST_true(group->meth->field_inv(group, b, BN_value_one(), ctx))

crypto/bn/bn_ctx.c:202:1: Parameter `ctx->stack.depth`
    200.   }
    201.   
    202. > BIGNUM *BN_CTX_get(BN_CTX *ctx)
    203.   {
    204.       BIGNUM *ret;

test/ec_internal_test.c:65:5: Call
  63.       ret = 1;
  64.    err:
  65.       BN_CTX_end(ctx);
            ^
  66.       return ret;
  67.   }

crypto/bn/bn_ctx.c:185:1: Parameter `ctx->stack.depth`
    183.   }
    184.   
    185. > void BN_CTX_end(BN_CTX *ctx)
    186.   {
    187.       CTXDBG("ENTER BN_CTX_end()", ctx);

crypto/bn/bn_ctx.c:191:27: Call
    189.           ctx->err_stack--;
    190.       else {
    191.           unsigned int fp = BN_STACK_pop(&ctx->stack);
                                     ^
    192.           /* Does this stack frame have anything to release? */
    193.           if (fp < ctx->used)

crypto/bn/bn_ctx.c:266:1: <LHS trace>
264.   }
265.   
266. > static unsigned int BN_STACK_pop(BN_STACK *st)
267.   {
268.       return st->indexes[--(st->depth)];

crypto/bn/bn_ctx.c:266:1: Parameter `st->depth`
      264.   }
      265.   
      266. > static unsigned int BN_STACK_pop(BN_STACK *st)
      267.   {
      268.       return st->indexes[--(st->depth)];

crypto/bn/bn_ctx.c:268:12: Binary operation: ([0, +oo] - 1):unsigned32 by call to `group_field_tests` 
      266.   static unsigned int BN_STACK_pop(BN_STACK *st)
      267.   {
      268.       return st->indexes[--(st->depth)];
                        ^
      269.   }
      270.   
