crypto/asn1/a_object.c:179: error: BUFFER_OVERRUN_L3
  Offset added: [0, 512] Size: [0, 536870848] by call to `BN_div_word`.
Showing all 16 steps of the trace


crypto/asn1/a_object.c:143:36: Call
141.                   if (bl == NULL)
142.                       bl = BN_new();
143.                   if (bl == NULL || !BN_set_word(bl, l))
                                          ^
144.                       goto err;
145.               }

crypto/bn/bn_lib.c:520:1: Parameter `*a->d`
  518.   }
  519.   
  520. > int BN_set_word(BIGNUM *a, BN_ULONG w)
  521.   {
  522.       bn_check_top(a);

crypto/bn/bn_lib.c:523:9: Call
  521.   {
  522.       bn_check_top(a);
  523.       if (bn_expand(a, (int)sizeof(BN_ULONG) * 8) == NULL)
                 ^
  524.           return (0);
  525.       a->neg = 0;

crypto/bn/bn_lcl.h:777:1: Parameter `*a->d`
    775.   int bn_probable_prime_dh_coprime(BIGNUM *rnd, int bits, BN_CTX *ctx);
    776.   
    777. > static ossl_inline BIGNUM *bn_expand(BIGNUM *a, int bits)
    778.   {
    779.       if (bits > (INT_MAX - BN_BITS2 + 1))

crypto/asn1/a_object.c:179:43: Call
177.               }
178.               while (blsize--)
179.                   tmp[i++] = (unsigned char)BN_div_word(bl, 0x80L);
                                                 ^
180.           } else {
181.   

crypto/bn/bn_word.c:87:1: Parameter `*a->d`
  85.   }
  86.   
  87. > BN_ULONG BN_div_word(BIGNUM *a, BN_ULONG w)
  88.   {
  89.       BN_ULONG ret = 0;

crypto/bn/bn_word.c:104:10: Call
  102.       j = BN_BITS2 - BN_num_bits_word(w);
  103.       w <<= j;
  104.       if (!BN_lshift(a, a, j))
                  ^
  105.           return (BN_ULONG)-1;
  106.   

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

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

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

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

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

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

crypto/bn/bn_lib.c:1071:1: Parameter `*a->d`
      1069.   }
      1070.   
      1071. > BIGNUM *bn_wexpand(BIGNUM *a, int words)
      1072.   {
      1073.       return (words <= a->dmax) ? a : bn_expand2(a, words);

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

crypto/bn/bn_shift.c:161:5: Array access: Offset added: [0, 512] Size: [0, 536870848] by call to `BN_div_word` 
    159.               t[nw + i] = (l << lb) & BN_MASK2;
    160.           }
    161.       memset(t, 0, sizeof(*t) * nw);
               ^
    162.       r->top = a->top + nw + 1;
    163.       bn_correct_top(r);
