test/bntest.c:541: error: BUFFER_OVERRUN_L2
  Offset: [0, 18446744073709551615] Size: 256 by call to `BN_div_word`.
Showing all 12 steps of the trace


test/bntest.c:540:9: Call
538.   
539.           s = b->d[0];
540.           BN_copy(b, a);
               ^
541.           r = BN_div_word(b, s);
542.   

crypto/bn/bn_lib.c:430:1: Parameter `*a->d`
  428.   }
  429.   
  430. > BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b)
  431.   {
  432.       int i;

test/bntest.c:539:9: Assignment
537.           } while (BN_is_zero(b));
538.   
539.           s = b->d[0];
               ^
540.           BN_copy(b, a);
541.           r = BN_div_word(b, s);

test/bntest.c:541:13: Call
539.           s = b->d[0];
540.           BN_copy(b, a);
541.           r = BN_div_word(b, s);
                   ^
542.   
543.           if (bp != NULL) {

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

crypto/bn/bn_word.c:94:5: Assignment
  92.   
  93.       bn_check_top(a);
  94.       w &= BN_MASK2;
            ^
  95.   
  96.       if (!w)

crypto/bn/bn_word.c:103:20: Call
  101.   
  102.       /* normalize input (so bn_div_words doesn't complain) */
  103.       j = BN_BITS2 - BN_num_bits_word(w);
                            ^
  104.       w <<= j;
  105.       if (!BN_lshift(a, a, j))

crypto/bn/bn_lib.c:142:1: <Offset trace>
140.   }
141.   
142. > int BN_num_bits_word(BN_ULONG l)
143.   {
144.       static const unsigned char bits[256] = {

crypto/bn/bn_lib.c:142:1: Parameter `l`
    140.   }
    141.   
    142. > int BN_num_bits_word(BN_ULONG l)
    143.   {
    144.       static const unsigned char bits[256] = {

crypto/bn/bn_lib.c:144:5: <Length trace>
142.   int BN_num_bits_word(BN_ULONG l)
143.   {
144.       static const unsigned char bits[256] = {
           ^
145.           0, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4,
146.           5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,

crypto/bn/bn_lib.c:144:5: Array declaration
    142.   int BN_num_bits_word(BN_ULONG l)
    143.   {
    144.       static const unsigned char bits[256] = {
               ^
    145.           0, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4,
    146.           5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,

crypto/bn/bn_lib.c:167:25: Array access: Offset: [0, 18446744073709551615] Size: 256 by call to `BN_div_word` 
    165.           if (l & 0xffff000000000000L) {
    166.               if (l & 0xff00000000000000L) {
    167.                   return (bits[(int)(l >> 56)] + 56);
                                   ^
    168.               } else
    169.                   return (bits[(int)(l >> 48)] + 48);
