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


test/sm2crypttest.c:156:5: Call
154.   
155.       pt = EC_POINT_new(group);
156.       EC_POINT_mul(group, pt, priv, NULL, NULL, NULL);
           ^
157.   
158.       EC_KEY_set_public_key(key, pt);

crypto/ec/ec_lib.c:921:1: Parameter `group->pre_comp.ec->w`
  919.   }
  920.   
  921. > int EC_POINT_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *g_scalar,
  922.                    const EC_POINT *point, const BIGNUM *p_scalar, BN_CTX *ctx)
  923.   {

crypto/ec/ec_lib.c:932:12: Call
  930.       scalars[0] = p_scalar;
  931.   
  932.       return EC_POINTs_mul(group, r, g_scalar,
                    ^
  933.                            (point != NULL
  934.                             && p_scalar != NULL), points, scalars, ctx);

crypto/ec/ec_lib.c:910:1: Parameter `group->pre_comp.ec->w`
    908.    */
    909.   
    910. > int EC_POINTs_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar,
    911.                     size_t num, const EC_POINT *points[],
    912.                     const BIGNUM *scalars[], BN_CTX *ctx)

crypto/ec/ec_lib.c:916:16: Call
    914.       if (group->meth->mul == 0)
    915.           /* use default */
    916.           return ec_wNAF_mul(group, r, scalar, num, points, scalars, ctx);
                          ^
    917.   
    918.       return group->meth->mul(group, r, scalar, num, points, scalars, ctx);

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

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

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