test/ectest.c:1140: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned32 by call to `EC_GROUP_check`.
Showing all 14 steps of the trace


test/ectest.c:1140:10: Call
1138.           return 0;
1139.       }
1140.       if (!TEST_true(EC_GROUP_check(group, NULL))) {
                 ^
1141.           TEST_info("EC_GROUP_check() failed with curve %s\n", OBJ_nid2sn(nid));
1142.           EC_GROUP_free(group);

crypto/ec/ec_check.c:40:1: Parameter `ctx->stack.depth`
  38.   }
  39.   
  40. > int EC_GROUP_check(const EC_GROUP *group, BN_CTX *ctx)
  41.   {
  42.   #ifdef FIPS_MODE

crypto/ec/ec_check.c:47:12: Call
  45.       * See SP800-56A R3 5.5.2 "Assurances of Domain-Parameter Validity" Part 1b.
  46.       */
  47.       return EC_GROUP_check_named_curve(group, 1, ctx) >= 0 ? 1 : 0;
                   ^
  48.   #else
  49.       int ret = 0;

crypto/ec/ec_check.c:13:1: Parameter `ctx->stack.depth`
    11.   #include <openssl/err.h>
    12.   
    13. > int EC_GROUP_check_named_curve(const EC_GROUP *group, int nist_only,
    14.                                  BN_CTX *ctx)
    15.   {

crypto/ec/ec_check.c:29:11: Call
    27.   #endif
    28.   
    29.       nid = ec_curve_nid_from_params(group, ctx);
                    ^
    30.       if (nid > 0 && nist_only && EC_curve_nid2nist(nid) == NULL)
    31.           nid = NID_undef;

crypto/ec/ec_curve.c:3312:1: Parameter `ctx->stack.depth`
      3310.    *          if not found. If there was an error it returns -1.
      3311.    */
      3312. > int ec_curve_nid_from_params(const EC_GROUP *group, BN_CTX *ctx)
      3313.   {
      3314.       int ret = -1, nid, len, field_type, param_len;

crypto/ec/ec_curve.c:3335:5: Call
      3333.       cofactor = EC_GROUP_get0_cofactor(group);
      3334.   
      3335.       BN_CTX_start(ctx);
                  ^
      3336.   
      3337.       /*

crypto/bn/bn_ctx.c:194:1: Parameter `ctx->stack.depth`
        192.   }
        193.   
        194. > void BN_CTX_start(BN_CTX *ctx)
        195.   {
        196.       CTXDBG("ENTER BN_CTX_start()", ctx);

crypto/ec/ec_curve.c:3411:5: Call
      3409.   end:
      3410.       OPENSSL_free(param_bytes);
      3411.       BN_CTX_end(ctx);
                  ^
      3412.       return ret;
      3413.   }

crypto/bn/bn_ctx.c:208:1: Parameter `ctx->stack.depth`
        206.   }
        207.   
        208. > void BN_CTX_end(BN_CTX *ctx)
        209.   {
        210.       if (ctx == NULL)

crypto/bn/bn_ctx.c:216:27: Call
        214.           ctx->err_stack--;
        215.       else {
        216.           unsigned int fp = BN_STACK_pop(&ctx->stack);
                                         ^
        217.           /* Does this stack frame have anything to release? */
        218.           if (fp < ctx->used)

crypto/bn/bn_ctx.c:298:1: <LHS trace>
296.   }
297.   
298. > static unsigned int BN_STACK_pop(BN_STACK *st)
299.   {
300.       return st->indexes[--(st->depth)];

crypto/bn/bn_ctx.c:298:1: Parameter `st->depth`
          296.   }
          297.   
          298. > static unsigned int BN_STACK_pop(BN_STACK *st)
          299.   {
          300.       return st->indexes[--(st->depth)];

crypto/bn/bn_ctx.c:300:12: Binary operation: ([0, +oo] - 1):unsigned32 by call to `EC_GROUP_check` 
          298.   static unsigned int BN_STACK_pop(BN_STACK *st)
          299.   {
          300.       return st->indexes[--(st->depth)];
                            ^
          301.   }
          302.   
