crypto/ec/ecdsa_ossl.c:451: error: BUFFER_OVERRUN_L3
  Offset added: [8, +oo] Size: [0, 67108856] by call to `EC_POINT_mul`.
Showing all 29 steps of the trace


crypto/ec/ecdsa_ossl.c:442:10: Call
440.       }
441.       /* u2 = r * w mod q */
442.       if (!BN_mod_mul(u2, sig->r, u2, order, ctx)) {
                ^
443.           ECerr(EC_F_OSSL_ECDSA_VERIFY_SIG, ERR_R_BN_LIB);
444.           goto err;

crypto/bn/bn_mod.c:93:10: Call
  91.               goto err;
  92.       }
  93.       if (!BN_nnmod(r, t, m, ctx))
                 ^
  94.           goto err;
  95.       bn_check_top(r);

crypto/bn/bn_mod.c:20:11: Call
    18.        */
    19.   
    20.       if (!(BN_mod(r, m, d, ctx)))
                    ^
    21.           return 0;
    22.       if (!r->neg)

crypto/bn/bn_div.c:137:1: Parameter `dv->top`
      135.    * If 'dv' or 'rm' is NULL, the respective value is not returned.
      136.    */
      137. > int BN_div(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor,
      138.              BN_CTX *ctx)
      139.   {

crypto/ec/ecdsa_ossl.c:451:10: Call
449.           goto err;
450.       }
451.       if (!EC_POINT_mul(group, point, u1, pub_key, u2, ctx)) {
                ^
452.           ECerr(EC_F_OSSL_ECDSA_VERIFY_SIG, ERR_R_EC_LIB);
453.           goto err;

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

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

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

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

crypto/ec/ec_mult.c:346:1: Parameter `r->X->top`
      344.    * in the addition if scalar != NULL
      345.    */
      346. > int ec_wNAF_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar,
      347.                   size_t num, const EC_POINT *points[], const BIGNUM *scalars[],
      348.                   BN_CTX *ctx)

crypto/ec/ec_mult.c:388:16: Call
      386.            * constant time version.
      387.            */
      388.           return ec_mul_consttime(group, r, scalar, NULL, ctx);
                            ^
      389.       }
      390.       if ((scalar == NULL) && (num == 1)) {

crypto/ec/ec_mult.c:131:1: Parameter `r->X->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:213:13: Call
        211.           || (bn_wexpand(s->Y, group_top) == NULL)
        212.           || (bn_wexpand(s->Z, group_top) == NULL)
        213.           || (bn_wexpand(r->X, group_top) == NULL)
                           ^
        214.           || (bn_wexpand(r->Y, group_top) == NULL)
        215.           || (bn_wexpand(r->Z, group_top) == NULL))

crypto/bn/bn_lib.c:923:1: Parameter `a->top`
          921.   }
          922.   
          923. > BIGNUM *bn_wexpand(BIGNUM *a, int words)
          924.   {
          925.       return (words <= a->dmax) ? a : bn_expand2(a, words);

crypto/bn/bn_lib.c:925:37: Call
          923.   BIGNUM *bn_wexpand(BIGNUM *a, int words)
          924.   {
          925.       return (words <= a->dmax) ? a : bn_expand2(a, words);
                                                     ^
          926.   }
          927.   

crypto/bn/bn_lib.c:246:1: Parameter `b->top`
            244.    */
            245.   
            246. > BIGNUM *bn_expand2(BIGNUM *b, int words)
            247.   {
            248.       bn_check_top(b);

crypto/bn/bn_lib.c:251:23: Call
            249.   
            250.       if (words > b->dmax) {
            251.           BN_ULONG *a = bn_expand_internal(b, words);
                                         ^
            252.           if (!a)
            253.               return NULL;

crypto/bn/bn_lib.c:208:1: <Offset trace>
206.   /* This is used by bn_expand2() */
207.   /* The caller MUST check that words > b->dmax before calling this */
208. > static BN_ULONG *bn_expand_internal(const BIGNUM *b, int words)
209.   {
210.       BN_ULONG *a = NULL;

crypto/bn/bn_lib.c:208:1: Parameter `b->top`
              206.   /* This is used by bn_expand2() */
              207.   /* The caller MUST check that words > b->dmax before calling this */
              208. > static BN_ULONG *bn_expand_internal(const BIGNUM *b, int words)
              209.   {
              210.       BN_ULONG *a = NULL;

crypto/bn/bn_lib.c:208:1: <Length trace>
206.   /* This is used by bn_expand2() */
207.   /* The caller MUST check that words > b->dmax before calling this */
208. > static BN_ULONG *bn_expand_internal(const BIGNUM *b, int words)
209.   {
210.       BN_ULONG *a = NULL;

crypto/bn/bn_lib.c:208:1: Parameter `words`
              206.   /* This is used by bn_expand2() */
              207.   /* The caller MUST check that words > b->dmax before calling this */
              208. > static BN_ULONG *bn_expand_internal(const BIGNUM *b, int words)
              209.   {
              210.       BN_ULONG *a = NULL;

crypto/bn/bn_lib.c:225:13: Call
              223.           a = OPENSSL_secure_zalloc(words * sizeof(*a));
              224.       else
              225.           a = OPENSSL_zalloc(words * sizeof(*a));
                                 ^
              226.       if (a == NULL) {
              227.           BNerr(BN_F_BN_EXPAND_INTERNAL, ERR_R_MALLOC_FAILURE);

crypto/mem.c:228:1: Parameter `num`
                226.   }
                227.   
                228. > void *CRYPTO_zalloc(size_t num, const char *file, int line)
                229.   {
                230.       void *ret = CRYPTO_malloc(num, file, line);

crypto/mem.c:230:17: Call
                228.   void *CRYPTO_zalloc(size_t num, const char *file, int line)
                229.   {
                230.       void *ret = CRYPTO_malloc(num, file, line);
                                       ^
                231.   
                232.       FAILTEST();

crypto/mem.c:201:9: Assignment
                  199.   
                  200.       if (num == 0)
                  201.           return NULL;
                                 ^
                  202.   
                  203.       FAILTEST();

crypto/mem.c:230:5: Assignment
                228.   void *CRYPTO_zalloc(size_t num, const char *file, int line)
                229.   {
                230.       void *ret = CRYPTO_malloc(num, file, line);
                           ^
                231.   
                232.       FAILTEST();

crypto/mem.c:235:5: Assignment
                233.       if (ret != NULL)
                234.           memset(ret, 0, num);
                235.       return ret;
                           ^
                236.   }
                237.   

crypto/bn/bn_lib.c:225:9: Assignment
              223.           a = OPENSSL_secure_zalloc(words * sizeof(*a));
              224.       else
              225.           a = OPENSSL_zalloc(words * sizeof(*a));
                             ^
              226.       if (a == NULL) {
              227.           BNerr(BN_F_BN_EXPAND_INTERNAL, ERR_R_MALLOC_FAILURE);

crypto/bn/bn_lib.c:233:9: Array access: Offset added: [8, +oo] Size: [0, 67108856] by call to `EC_POINT_mul` 
              231.       assert(b->top <= words);
              232.       if (b->top > 0)
              233.           memcpy(a, b->d, sizeof(*a) * b->top);
                             ^
              234.   
              235.       return a;
