test/bntest.c:1639: 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:1639:10: Call
1637.       }
1638.   
1639.       if (!BN_asc2bn(&bn, "0x1234")
                 ^
1640.               || !BN_is_word(bn, 0x1234) || BN_is_negative(bn)) {
1641.           fprintf(stderr, "BN_asc2bn(0x1234) gave a bad result.\n");

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) && isxdigit((unsigned char)a[i]); i++)
                ^
142.           continue;
143.   

crypto/bn/bn_print.c:141:10: Assignment
    139.       }
    140.   
    141.       for (i = 0; i <= (INT_MAX/4) && isxdigit((unsigned char)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) && isxdigit((unsigned char)a[i]); i++)
                                               ^
    142.           continue;
    143.   
