test/testutil/tests.c:648: error: BUFFER_OVERRUN_L3
  Offset: 0 Size: [0, 8388607] by call to `BN_set_word`.
Showing all 9 steps of the trace


test/testutil/tests.c:646:10: Call
644.           return 1;
645.       bw = BN_new();
646.       aa = BN_dup(a);
                ^
647.       BN_set_negative(aa, 0);
648.       BN_set_word(bw, w);

crypto/bn/bn_lib.c:315:10: Call
  313.       if (t == NULL)
  314.           return NULL;
  315.       if (!BN_copy(t, a)) {
                  ^
  316.           BN_free(t);
  317.           return NULL;

crypto/bn/bn_lib.c:323:1: Parameter `*a->d`
    321.   }
    322.   
    323. > BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b)
    324.   {
    325.       bn_check_top(b);

test/testutil/tests.c:648:5: Call
646.       aa = BN_dup(a);
647.       BN_set_negative(aa, 0);
648.       BN_set_word(bw, w);
           ^
649.       test_fail_bignum_message(NULL, file, line, "BIGNUM", bns, ws, "abs==",
650.                                aa, bw);

crypto/bn/bn_lib.c:395:1: <Length trace>
393.   }
394.   
395. > int BN_set_word(BIGNUM *a, BN_ULONG w)
396.   {
397.       bn_check_top(a);

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

crypto/bn/bn_lib.c:398:9: Call
  396.   {
  397.       bn_check_top(a);
  398.       if (bn_expand(a, (int)sizeof(BN_ULONG) * 8) == NULL)
                 ^
  399.           return (0);
  400.       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_lib.c:401:5: Array access: Offset: 0 Size: [0, 8388607] by call to `BN_set_word` 
  399.           return (0);
  400.       a->neg = 0;
  401.       a->d[0] = w;
             ^
  402.       a->top = (w ? 1 : 0);
  403.       bn_check_top(a);
