crypto/ec/ec_key.c:412: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned32 by call to `BN_CTX_end`.
Showing all 8 steps of the trace


crypto/ec/ec_key.c:357:5: Call
355.           return 0;
356.   
357.       BN_CTX_start(ctx);
           ^
358.       point = EC_POINT_new(key->group);
359.   

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/ec/ec_key.c:412:5: Call
410.   
411.    err:
412.       BN_CTX_end(ctx);
           ^
413.       BN_CTX_free(ctx);
414.       EC_POINT_free(point);

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

static unsigned int BN_STACK_pop(BN_STACK *st)
{
    return st->indexes[--(st->depth)];
}
['int EC_KEY_set_public_key_affine_coordinates(EC_KEY *key, BIGNUM *x,\n                                             BIGNUM *y)\n{\n    BN_CTX *ctx = NULL;\n    BIGNUM *tx, *ty;\n    EC_POINT *point = NULL;\n    int ok = 0;\n#ifndef OPENSSL_NO_EC2M\n    int tmp_nid, is_char_two = 0;\n#endif\n    if (key == NULL || key->group == NULL || x == NULL || y == NULL) {\n        ECerr(EC_F_EC_KEY_SET_PUBLIC_KEY_AFFINE_COORDINATES,\n              ERR_R_PASSED_NULL_PARAMETER);\n        return 0;\n    }\n    ctx = BN_CTX_new();\n    if (ctx == NULL)\n        return 0;\n    BN_CTX_start(ctx);\n    point = EC_POINT_new(key->group);\n    if (point == NULL)\n        goto err;\n    tx = BN_CTX_get(ctx);\n    ty = BN_CTX_get(ctx);\n    if (ty == NULL)\n        goto err;\n#ifndef OPENSSL_NO_EC2M\n    tmp_nid = EC_METHOD_get_field_type(EC_GROUP_method_of(key->group));\n    if (tmp_nid == NID_X9_62_characteristic_two_field)\n        is_char_two = 1;\n    if (is_char_two) {\n        if (!EC_POINT_set_affine_coordinates_GF2m(key->group, point,\n                                                  x, y, ctx))\n            goto err;\n        if (!EC_POINT_get_affine_coordinates_GF2m(key->group, point,\n                                                  tx, ty, ctx))\n            goto err;\n    } else\n#endif\n    {\n        if (!EC_POINT_set_affine_coordinates_GFp(key->group, point,\n                                                 x, y, ctx))\n            goto err;\n        if (!EC_POINT_get_affine_coordinates_GFp(key->group, point,\n                                                 tx, ty, ctx))\n            goto err;\n    }\n    if (BN_cmp(x, tx) || BN_cmp(y, ty)\n        || (BN_cmp(x, key->group->field) >= 0)\n        || (BN_cmp(y, key->group->field) >= 0)) {\n        ECerr(EC_F_EC_KEY_SET_PUBLIC_KEY_AFFINE_COORDINATES,\n              EC_R_COORDINATES_OUT_OF_RANGE);\n        goto err;\n    }\n    if (!EC_KEY_set_public_key(key, point))\n        goto err;\n    if (EC_KEY_check_key(key) == 0)\n        goto err;\n    ok = 1;\n err:\n    BN_CTX_end(ctx);\n    BN_CTX_free(ctx);\n    EC_POINT_free(point);\n    return ok;\n}', 'void BN_CTX_start(BN_CTX *ctx)\n{\n    CTXDBG_ENTRY("BN_CTX_start", ctx);\n    if (ctx->err_stack || ctx->too_many)\n        ctx->err_stack++;\n    else if (!BN_STACK_push(&ctx->stack, ctx->used)) {\n        BNerr(BN_F_BN_CTX_START, BN_R_TOO_MANY_TEMPORARY_VARIABLES);\n        ctx->err_stack++;\n    }\n    CTXDBG_EXIT(ctx);\n}', 'void BN_CTX_end(BN_CTX *ctx)\n{\n    CTXDBG_ENTRY("BN_CTX_end", ctx);\n    if (ctx->err_stack)\n        ctx->err_stack--;\n    else {\n        unsigned int fp = BN_STACK_pop(&ctx->stack);\n        if (fp < ctx->used)\n            BN_POOL_release(&ctx->pool, ctx->used - fp);\n        ctx->used = fp;\n        ctx->too_many = 0;\n    }\n    CTXDBG_EXIT(ctx);\n}', 'static unsigned int BN_STACK_pop(BN_STACK *st)\n{\n    return st->indexes[--(st->depth)];\n}']