test/ectest.c:1141: error: BUFFER_OVERRUN_L3
  Offset added: [8, +oo] Size: [0, 536870848] by call to `EC_GROUP_check`.
Showing all 24 steps of the trace


test/ectest.c:1136:10: Call
1134.       int nid = curves[n].nid;
1135.   
1136.       if (!TEST_ptr(group = EC_GROUP_new_by_curve_name(nid))) {
                 ^
1137.           TEST_info("EC_GROUP_new_curve_name() failed with curve %s\n",
1138.                     OBJ_nid2sn(nid));

crypto/ec/ec_curve.c:3127:19: Call
  3125.       for (i = 0; i < curve_list_length; i++)
  3126.           if (curve_list[i].nid == nid) {
  3127.               ret = ec_group_new_from_data(curve_list[i]);
                            ^
  3128.               break;
  3129.           }

crypto/ec/ec_curve.c:3038:14: Call
    3036.       params += seed_len;         /* skip seed */
    3037.   
    3038.       if ((p = BN_bin2bn(params + 0 * param_len, param_len, NULL)) == NULL
                         ^
    3039.           || (a = BN_bin2bn(params + 1 * param_len, param_len, NULL)) == NULL
    3040.           || (b = BN_bin2bn(params + 2 * param_len, param_len, NULL)) == NULL) {

crypto/bn/bn_lib.c:371:1: Parameter `ret->top`
      369.   }
      370.   
      371. > BIGNUM *BN_bin2bn(const unsigned char *s, int len, BIGNUM *ret)
      372.   {
      373.       unsigned int i, m;

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

crypto/ec/ec_check.c:13:1: Parameter `group->order->top`
  11.   #include <openssl/err.h>
  12.   
  13. > int EC_GROUP_check(const EC_GROUP *group, BN_CTX *ctx)
  14.   {
  15.       int ret = 0;

crypto/ec/ec_check.c:54:9: Call
  52.       if (order == NULL)
  53.           goto err;
  54.       if (BN_is_zero(order)) {
                ^
  55.           ECerr(EC_F_EC_GROUP_CHECK, EC_R_UNDEFINED_ORDER);
  56.           goto err;

crypto/bn/bn_lib.c:846:1: Parameter `a->top`
    844.   }
    845.   
    846. > int BN_is_zero(const BIGNUM *a)
    847.   {
    848.       return a->top == 0;

crypto/ec/ec_check.c:59:10: Call
  57.       }
  58.   
  59.       if (!EC_POINT_mul(group, point, order, NULL, NULL, ctx))
                 ^
  60.           goto err;
  61.       if (!EC_POINT_is_at_infinity(group, point)) {

crypto/ec/ec_lib.c:929:1: Parameter `g_scalar->top`
    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 `scalar->top`
      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:354:1: Parameter `scalar->top`
        352.    * in the addition if scalar != NULL
        353.    */
        354. > int ec_wNAF_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar,
        355.                   size_t num, const EC_POINT *points[], const BIGNUM *scalars[],
        356.                   BN_CTX *ctx)

crypto/ec/ec_mult.c:406:20: Call
        404.                * constant time version.
        405.                */
        406.               return ec_mul_consttime(group, r, scalar, NULL, ctx);
                                  ^
        407.           }
        408.           if ((scalar == NULL) && (num == 1)) {

crypto/ec/ec_mult.c:131:1: Parameter `scalar->top`
          129.    * Returns 1 on success, 0 otherwise.
          130.    */
          131. > static int ec_mul_consttime(const EC_GROUP *group, EC_POINT *r,
          132.                               const BIGNUM *scalar, const EC_POINT *point,
          133.                               BN_CTX *ctx)

crypto/ec/ec_mult.c:180:10: Call
          178.           goto err;
          179.   
          180.       if (!BN_copy(k, scalar))
                          ^
          181.           goto err;
          182.   

crypto/bn/bn_lib.c:280:1: <Offset trace>
278.   }
279.   
280. > BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b)
281.   {
282.       bn_check_top(b);

crypto/bn/bn_lib.c:280:1: Parameter `b->top`
            278.   }
            279.   
            280. > BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b)
            281.   {
            282.       bn_check_top(b);

crypto/bn/bn_lib.c:280:1: <Length trace>
278.   }
279.   
280. > BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b)
281.   {
282.       bn_check_top(b);

crypto/bn/bn_lib.c:280:1: Parameter `*a->d`
            278.   }
            279.   
            280. > BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b)
            281.   {
            282.       bn_check_top(b);

crypto/bn/bn_lib.c:286:9: Call
            284.       if (a == b)
            285.           return a;
            286.       if (bn_wexpand(a, b->top) == NULL)
                           ^
            287.           return NULL;
            288.   

crypto/bn/bn_lib.c:942:1: Parameter `*a->d`
              940.   }
              941.   
              942. > BIGNUM *bn_wexpand(BIGNUM *a, int words)
              943.   {
              944.       return (words <= a->dmax) ? a : bn_expand2(a, words);

crypto/bn/bn_lib.c:290:9: Array access: Offset added: [8, +oo] Size: [0, 536870848] by call to `EC_GROUP_check` 
            288.   
            289.       if (b->top > 0)
            290.           memcpy(a->d, b->d, sizeof(b->d[0]) * b->top);
                           ^
            291.   
            292.       a->neg = b->neg;
