crypto/ec/ec_ameth.c:701: error: BUFFER_OVERRUN_L3
  Offset: [1, +oo] Size: [0, 8388607] by call to `o2i_ECPublicKey`.
Showing all 31 steps of the trace


crypto/ec/ec_ameth.c:692:18: Call
690.               goto err;
691.       } else {
692.           ecpeer = eckey_type2param(atype, aval);
                        ^
693.           if (!ecpeer)
694.               goto err;

crypto/ec/ec_ameth.c:165:17: Call
  163.               goto ecerr;
  164.           }
  165.           group = EC_GROUP_new_by_curve_name(OBJ_obj2nid(poid));
                         ^
  166.           if (group == NULL)
  167.               goto ecerr;

crypto/ec/ec_curve.c:3139:19: Call
    3137.       for (i = 0; i < curve_list_length; i++)
    3138.           if (curve_list[i].nid == nid) {
    3139.               ret = ec_group_new_from_data(curve_list[i]);
                              ^
    3140.               break;
    3141.           }

crypto/ec/ec_curve.c:3052:14: Call
      3050.       params += seed_len;         /* skip seed */
      3051.   
      3052.       if ((p = BN_bin2bn(params + 0 * param_len, param_len, NULL)) == NULL
                           ^
      3053.           || (a = BN_bin2bn(params + 1 * param_len, param_len, NULL)) == NULL
      3054.           || (b = BN_bin2bn(params + 2 * param_len, param_len, NULL)) == NULL) {

crypto/bn/bn_lib.c:542:1: Parameter `ret->top`
        540.   }
        541.   
        542. > BIGNUM *BN_bin2bn(const unsigned char *s, int len, BIGNUM *ret)
        543.   {
        544.       unsigned int i, m;

crypto/ec/ec_ameth.c:701:10: Call
699.       if (!p || !plen)
700.           goto err;
701.       if (!o2i_ECPublicKey(&ecpeer, &p, plen))
                ^
702.           goto err;
703.       pkpeer = EVP_PKEY_new();

crypto/ec/ec_asn1.c:1233:1: Parameter `(*a)->group->field->top`
  1231.   }
  1232.   
  1233. > EC_KEY *o2i_ECPublicKey(EC_KEY **a, const unsigned char **in, long len)
  1234.   {
  1235.       EC_KEY *ret = NULL;

crypto/ec/ec_asn1.c:1250:10: Call
  1248.           return 0;
  1249.       }
  1250.       if (!EC_POINT_oct2point(ret->group, ret->pub_key, *in, len, NULL)) {
                   ^
  1251.           ECerr(EC_F_O2I_ECPUBLICKEY, ERR_R_EC_LIB);
  1252.           return 0;

crypto/ec/ec_oct.c:166:1: Parameter `group->field->top`
    164.   }
    165.   
    166. > int EC_POINT_oct2point(const EC_GROUP *group, EC_POINT *point,
    167.                          const unsigned char *buf, size_t len, BN_CTX *ctx)
    168.   {

crypto/ec/ec_oct.c:188:20: Call
    186.           }
    187.   #else
    188.               return ec_GF2m_simple_oct2point(group, point, buf, len, ctx);
                              ^
    189.   #endif
    190.       }

crypto/ec/ec2_oct.c:294:1: Parameter `group->field->top`
      292.    * simple implementation only uses affine coordinates.
      293.    */
      294. > int ec_GF2m_simple_oct2point(const EC_GROUP *group, EC_POINT *point,
      295.                                const unsigned char *buf, size_t len,
      296.                                BN_CTX *ctx)

crypto/ec/ec2_oct.c:363:14: Call
      361.   
      362.       if (form == POINT_CONVERSION_COMPRESSED) {
      363.           if (!EC_POINT_set_compressed_coordinates_GF2m
                          ^
      364.               (group, point, x, y_bit, ctx))
      365.               goto err;

crypto/ec/ec_oct.c:107:1: Parameter `group->field->top`
        105.   
        106.   #ifndef OPENSSL_NO_EC2M
        107. > int EC_POINT_set_compressed_coordinates_GF2m(const EC_GROUP *group,
        108.                                                EC_POINT *point, const BIGNUM *x,
        109.                                                int y_bit, BN_CTX *ctx)

crypto/ec/ec_oct.c:124:20: Call
        122.       if (group->meth->flags & EC_FLAGS_DEFAULT_OCT) {
        123.           if (group->meth->field_type == NID_X9_62_prime_field)
        124.               return ec_GFp_simple_set_compressed_coordinates(group, point, x,
                                  ^
        125.                                                               y_bit, ctx);
        126.           else

crypto/ec/ecp_oct.c:71:1: Parameter `group->field->top`
          69.   #include "ec_lcl.h"
          70.   
          71. > int ec_GFp_simple_set_compressed_coordinates(const EC_GROUP *group,
          72.                                                EC_POINT *point,
          73.                                                const BIGNUM *x_, int y_bit,

crypto/ec/ecp_oct.c:106:10: Call
          104.   
          105.       /* tmp1 := x^3 */
          106.       if (!BN_nnmod(x, x_, group->field, ctx))
                          ^
          107.           goto err;
          108.       if (group->meth->field_decode == 0) {

crypto/bn/bn_mod.c:119:1: Parameter `d->top`
            117.   #include "bn_lcl.h"
            118.   
            119. > int BN_nnmod(BIGNUM *r, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx)
            120.   {
            121.       /*

crypto/bn/bn_mod.c:126:11: Call
            124.        */
            125.   
            126.       if (!(BN_mod(r, m, d, ctx)))
                             ^
            127.           return 0;
            128.       if (!r->neg)

crypto/bn/bn_div.c:254:31: Call
              252.   
              253.       /* First we normalise the numbers */
              254.       norm_shift = BN_BITS2 - ((BN_num_bits(divisor)) % BN_BITS2);
                                                   ^
              255.       if (!(BN_lshift(sdiv, divisor, norm_shift)))
              256.           goto err;

crypto/bn/bn_lib.c:221:9: Assignment
                219.   
                220.       if (BN_is_zero(a))
                221.           return 0;
                               ^
                222.       return ((i * BN_BITS2) + BN_num_bits_word(a->d[i]));
                223.   }

crypto/bn/bn_div.c:254:5: Assignment
              252.   
              253.       /* First we normalise the numbers */
              254.       norm_shift = BN_BITS2 - ((BN_num_bits(divisor)) % BN_BITS2);
                         ^
              255.       if (!(BN_lshift(sdiv, divisor, norm_shift)))
              256.           goto err;

crypto/bn/bn_div.c:255:11: Call
              253.       /* First we normalise the numbers */
              254.       norm_shift = BN_BITS2 - ((BN_num_bits(divisor)) % BN_BITS2);
              255.       if (!(BN_lshift(sdiv, divisor, norm_shift)))
                               ^
              256.           goto err;
              257.       sdiv->neg = 0;

crypto/bn/bn_shift.c:130:1: <Offset trace>
128.   }
129.   
130. > int BN_lshift(BIGNUM *r, const BIGNUM *a, int n)
131.   {
132.       int i, nw, lb, rb;

crypto/bn/bn_shift.c:130:1: Parameter `n`
                128.   }
                129.   
                130. > int BN_lshift(BIGNUM *r, const BIGNUM *a, int n)
                131.   {
                132.       int i, nw, lb, rb;

crypto/bn/bn_shift.c:145:5: Assignment
                143.   
                144.       r->neg = a->neg;
                145.       nw = n / BN_BITS2;
                           ^
                146.       if (bn_wexpand(r, a->top + nw + 1) == NULL)
                147.           return (0);

crypto/bn/bn_shift.c:130:1: <Length trace>
128.   }
129.   
130. > int BN_lshift(BIGNUM *r, const BIGNUM *a, int n)
131.   {
132.       int i, nw, lb, rb;

crypto/bn/bn_shift.c:130:1: Parameter `*r->d`
                128.   }
                129.   
                130. > int BN_lshift(BIGNUM *r, const BIGNUM *a, int n)
                131.   {
                132.       int i, nw, lb, rb;

crypto/bn/bn_shift.c:146:9: Call
                144.       r->neg = a->neg;
                145.       nw = n / BN_BITS2;
                146.       if (bn_wexpand(r, a->top + nw + 1) == NULL)
                               ^
                147.           return (0);
                148.       lb = n % BN_BITS2;

crypto/bn/bn_lib.c:995:1: Parameter `*a->d`
                  993.   }
                  994.   
                  995. > BIGNUM *bn_wexpand(BIGNUM *a, int words)
                  996.   {
                  997.       return (words <= a->dmax) ? a : bn_expand2(a, words);

crypto/bn/bn_shift.c:151:5: Assignment
                149.       rb = BN_BITS2 - lb;
                150.       f = a->d;
                151.       t = r->d;
                           ^
                152.       t[a->top + nw] = 0;
                153.       if (lb == 0)

crypto/bn/bn_shift.c:159:13: Array access: Offset: [1, +oo] Size: [0, 8388607] by call to `o2i_ECPublicKey` 
                157.           for (i = a->top - 1; i >= 0; i--) {
                158.               l = f[i];
                159.               t[nw + i + 1] |= (l >> rb) & BN_MASK2;
                                   ^
                160.               t[nw + i] = (l << lb) & BN_MASK2;
                161.           }
