test/bntest.c:1665: error: BUFFER_OVERRUN_L2
  Offset: [2, 536870915] (⇐ [2, 4] + [0, 536870911]) Size: 7 by call to `BN_asc2bn`.
Showing all 9 steps of the trace


test/bntest.c:1665:10: Call
1663.           goto err;
1664.   
1665.       if (!TEST_true(BN_asc2bn(&bn, "0x1234"))
                 ^
1666.               || !TEST_BN_eq_word(bn, 0x1234)
1667.               || !TEST_BN_ge_zero(bn))

crypto/bn/bn_print.c:269:1: Parameter `*a`
  267.   }
  268.   
  269. > int BN_asc2bn(BIGNUM **bn, const char *a)
  270.   {
  271.       const char *p = a;

crypto/bn/bn_print.c:271:5: Assignment
  269.   int BN_asc2bn(BIGNUM **bn, const char *a)
  270.   {
  271.       const char *p = a;
             ^
  272.   
  273.       if (*p == '-')

crypto/bn/bn_print.c:277:14: Call
  275.   
  276.       if (p[0] == '0' && (p[1] == 'X' || p[1] == 'x')) {
  277.           if (!BN_hex2bn(bn, p + 2))
                      ^
  278.               return 0;
  279.       } else {

crypto/bn/bn_print.c:141:10: <Offset trace>
139.       }
140.   
141.       for (i = 0; i <= INT_MAX / 4 && ossl_isxdigit(a[i]); i++)
                ^
142.           continue;
143.   

crypto/bn/bn_print.c:141:10: Assignment
    139.       }
    140.   
    141.       for (i = 0; i <= INT_MAX / 4 && ossl_isxdigit(a[i]); i++)
                    ^
    142.           continue;
    143.   

crypto/bn/bn_print.c:126:1: <Length trace>
124.   }
125.   
126. > int BN_hex2bn(BIGNUM **bn, const char *a)
127.   {
128.       BIGNUM *ret = NULL;

crypto/bn/bn_print.c:126:1: Parameter `*a`
    124.   }
    125.   
    126. > int BN_hex2bn(BIGNUM **bn, const char *a)
    127.   {
    128.       BIGNUM *ret = NULL;

crypto/bn/bn_print.c:141:37: Array access: Offset: [2, 536870915] (⇐ [2, 4] + [0, 536870911]) Size: 7 by call to `BN_asc2bn` 
    139.       }
    140.   
    141.       for (i = 0; i <= INT_MAX / 4 && ossl_isxdigit(a[i]); i++)
                                               ^
    142.           continue;
    143.   
