test/sm2_internal_test.c:282: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned64 by call to `EC_POINT_mul`.
Showing all 8 steps of the trace


test/sm2_internal_test.c:282:17: Call
280.       pt = EC_POINT_new(group);
281.       if (!TEST_ptr(pt)
282.               || !TEST_true(EC_POINT_mul(group, pt, priv, NULL, NULL, NULL))
                       ^
283.               || !TEST_true(EC_KEY_set_public_key(key, pt)))
284.           goto done;

crypto/ec/ec_lib.c:929:1: Parameter `group->pre_comp.ec->w`
  927.   }
  928.   
  929. > int EC_POINT_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *g_scalar,
  930.                    const EC_POINT *point, const BIGNUM *p_scalar, BN_CTX *ctx)
  931.   {

crypto/ec/ec_lib.c:940:12: Call
  938.       scalars[0] = p_scalar;
  939.   
  940.       return EC_POINTs_mul(group, r, g_scalar,
                    ^
  941.                            (point != NULL
  942.                             && p_scalar != NULL), points, scalars, ctx);

crypto/ec/ec_lib.c:918:1: Parameter `group->pre_comp.ec->w`
    916.    */
    917.   
    918. > int EC_POINTs_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar,
    919.                     size_t num, const EC_POINT *points[],
    920.                     const BIGNUM *scalars[], BN_CTX *ctx)

crypto/ec/ec_lib.c:924:16: Call
    922.       if (group->meth->mul == 0)
    923.           /* use default */
    924.           return ec_wNAF_mul(group, r, scalar, num, points, scalars, ctx);
                          ^
    925.   
    926.       return group->meth->mul(group, r, scalar, num, points, scalars, ctx);

crypto/ec/ec_mult.c:342:1: <LHS trace>
340.    * in the addition if scalar != NULL
341.    */
342. > int ec_wNAF_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar,
343.                   size_t num, const EC_POINT *points[], const BIGNUM *scalars[],
344.                   BN_CTX *ctx)

crypto/ec/ec_mult.c:342:1: Parameter `group->pre_comp.ec->w`
      340.    * in the addition if scalar != NULL
      341.    */
      342. > int ec_wNAF_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar,
      343.                   size_t num, const EC_POINT *points[], const BIGNUM *scalars[],
      344.                   BN_CTX *ctx)

crypto/ec/ec_mult.c:446:13: Binary operation: ([0, +oo] - 1):unsigned64 by call to `EC_POINT_mul` 
      444.                   numblocks = pre_comp->numblocks;
      445.   
      446.               pre_points_per_block = (size_t)1 << (pre_comp->w - 1);
                         ^
      447.   
      448.               /* check that pre_comp looks sane */
