crypto/asn1/a_object.c:131: 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:95:36: Call
93.                   if (bl == NULL)
94.                       bl = BN_new();
95.                   if (bl == NULL || !BN_set_word(bl, l))
                                         ^
96.                       goto err;
97.               }

crypto/bn/bn_lib.c:393:1: Parameter `*a->d`
  391.   }
  392.   
  393. > int BN_set_word(BIGNUM *a, BN_ULONG w)
  394.   {
  395.       bn_check_top(a);

crypto/bn/bn_lib.c:396:9: Call
  394.   {
  395.       bn_check_top(a);
  396.       if (bn_expand(a, (int)sizeof(BN_ULONG) * 8) == NULL)
                 ^
  397.           return (0);
  398.       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/asn1/a_object.c:131:30: Call
129.               }
130.               while (blsize--) {
131.                   BN_ULONG t = BN_div_word(bl, 0x80L);
                                    ^
132.                   if (t == (BN_ULONG)-1)
133.                       goto err;

crypto/bn/bn_word.c:61:1: Parameter `*a->d`
  59.   }
  60.   
  61. > BN_ULONG BN_div_word(BIGNUM *a, BN_ULONG w)
  62.   {
  63.       BN_ULONG ret = 0;

crypto/bn/bn_word.c:78:10: Call
  76.       j = BN_BITS2 - BN_num_bits_word(w);
  77.       w <<= j;
  78.       if (!BN_lshift(a, a, j))
                 ^
  79.           return (BN_ULONG)-1;
  80.   

crypto/bn/bn_shift.c:83:1: <Offset trace>
81.   }
82.   
83. > int BN_lshift(BIGNUM *r, const BIGNUM *a, int n)
84.   {
85.       int i, nw, lb, rb;

crypto/bn/bn_shift.c:83:1: Parameter `n`
    81.   }
    82.   
    83. > int BN_lshift(BIGNUM *r, const BIGNUM *a, int n)
    84.   {
    85.       int i, nw, lb, rb;

crypto/bn/bn_shift.c:97:5: Assignment
    95.       }
    96.   
    97.       nw = n / BN_BITS2;
               ^
    98.       if (bn_wexpand(r, a->top + nw + 1) == NULL)
    99.           return (0);

crypto/bn/bn_shift.c:83:1: <Length trace>
81.   }
82.   
83. > int BN_lshift(BIGNUM *r, const BIGNUM *a, int n)
84.   {
85.       int i, nw, lb, rb;

crypto/bn/bn_shift.c:83:1: Parameter `*r->d`
    81.   }
    82.   
    83. > int BN_lshift(BIGNUM *r, const BIGNUM *a, int n)
    84.   {
    85.       int i, nw, lb, rb;

crypto/bn/bn_shift.c:98:9: Call
    96.   
    97.       nw = n / BN_BITS2;
    98.       if (bn_wexpand(r, a->top + nw + 1) == NULL)
                   ^
    99.           return (0);
    100.       r->neg = a->neg;

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

crypto/bn/bn_shift.c:104:5: Assignment
    102.       rb = BN_BITS2 - lb;
    103.       f = a->d;
    104.       t = r->d;
               ^
    105.       t[a->top + nw] = 0;
    106.       if (lb == 0)

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