crypto/ec/ec_curve.c:3086: error: BUFFER_OVERRUN_L3
  Offset added: [8, +oo] Size: [0, 536870848] by call to `BN_set_word`.
Showing all 14 steps of the trace


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:388:9: Assignment
  386.       n = len;
  387.       if (n == 0) {
  388.           ret->top = 0;
                 ^
  389.           return ret;
  390.       }

crypto/ec/ec_curve.c:3086:13: Call
3084.       }
3085.       if ((order = BN_bin2bn(params + 5 * param_len, param_len, NULL)) == NULL
3086.           || !BN_set_word(x, (BN_ULONG)data->cofactor)) {
                    ^
3087.           ECerr(EC_F_EC_GROUP_NEW_FROM_DATA, ERR_R_BN_LIB);
3088.           goto err;

crypto/bn/bn_lib.c:358:1: Parameter `*a->d`
  356.   }
  357.   
  358. > int BN_set_word(BIGNUM *a, BN_ULONG w)
  359.   {
  360.       bn_check_top(a);

crypto/bn/bn_lib.c:361:9: Call
  359.   {
  360.       bn_check_top(a);
  361.       if (bn_expand(a, (int)sizeof(BN_ULONG) * 8) == NULL)
                 ^
  362.           return 0;
  363.       a->neg = 0;

crypto/bn/bn_lcl.h:660:1: Parameter `*a->d`
    658.                            const BIGNUM *add, const BIGNUM *rem, BN_CTX *ctx);
    659.   
    660. > static ossl_inline BIGNUM *bn_expand(BIGNUM *a, int bits)
    661.   {
    662.       if (bits > (INT_MAX - BN_BITS2 + 1))

crypto/bn/bn_lcl.h:668:12: Call
    666.           return a;
    667.   
    668.       return bn_expand2((a),(bits+BN_BITS2-1)/BN_BITS2);
                      ^
    669.   }
    670.   

crypto/bn/bn_lib.c:244:1: Parameter `*b->d`
      242.    */
      243.   
      244. > BIGNUM *bn_expand2(BIGNUM *b, int words)
      245.   {
      246.       if (words > b->dmax) {

crypto/bn/bn_lib.c:247:23: Call
      245.   {
      246.       if (words > b->dmax) {
      247.           BN_ULONG *a = bn_expand_internal(b, words);
                                   ^
      248.           if (!a)
      249.               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 `*b->d`
        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:231:9: Array access: Offset added: [8, +oo] Size: [0, 536870848] by call to `BN_set_word` 
        229.       assert(b->top <= words);
        230.       if (b->top > 0)
        231.           memcpy(a, b->d, sizeof(*a) * b->top);
                       ^
        232.   
        233.       return a;
