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


test/ectest.c:1781:10: Call
1779.           goto err;
1780.   
1781.       if (!TEST_int_gt(rv = EC_GROUP_check_named_curve(g, 0, NULL), 0))
                 ^
1782.           goto err;
1783.       if (rv != nid) {

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_named_curve` 
        298.   static unsigned int BN_STACK_pop(BN_STACK *st)
        299.   {
        300.       return st->indexes[--(st->depth)];
                          ^
        301.   }
        302.   
