test/bntest.c:168: error: BUFFER_OVERRUN_L3
  Offset: [0, 49] Size: [0, 8388607] by call to `BN_set_bit`.
Showing all 7 steps of the trace


test/bntest.c:56:1: Assignment
54.   } MPITEST;
55.   
56. > static const int NUM0 = 100;           /* number of tests */
57.   static const int NUM1 = 50;            /* additional tests for some functions */
58.   static BN_CTX *ctx;

test/bntest.c:168:18: Call
166.               BN_bntest_rand(a, 512, 0, 0);
167.               BN_copy(b, a);
168.               if (!TEST_int_ne(BN_set_bit(a, i), 0))
                        ^
169.                   goto err;
170.               BN_add_word(b, i);

crypto/bn/bn_lib.c:627:1: <Offset trace>
625.   }
626.   
627. > int BN_set_bit(BIGNUM *a, int n)
628.   {
629.       int i, j, k;

crypto/bn/bn_lib.c:627:1: Parameter `a->top`
  625.   }
  626.   
  627. > int BN_set_bit(BIGNUM *a, int n)
  628.   {
  629.       int i, j, k;

crypto/bn/bn_lib.c:627:1: <Length trace>
625.   }
626.   
627. > int BN_set_bit(BIGNUM *a, int n)
628.   {
629.       int i, j, k;

crypto/bn/bn_lib.c:627:1: Parameter `*a->d`
  625.   }
  626.   
  627. > int BN_set_bit(BIGNUM *a, int n)
  628.   {
  629.       int i, j, k;

crypto/bn/bn_lib.c:644:5: Array access: Offset: [0, 49] Size: [0, 8388607] by call to `BN_set_bit` 
  642.       }
  643.   
  644.       a->d[i] |= (((BN_ULONG)1) << j);
             ^
  645.       bn_check_top(a);
  646.       return 1;
