Long support: Buffer overflow
cjlano opened this issue · comments
CJlano commented
When PRINTF_LONG_SUPPORT is enabled, bf[12] buffer will overflow on big numbers.
Fix: enlarge bf array to 23 elements to support largest long number.
The larger long number is: 0xFFFFFFFFFFFFFFFF in octal mode: 01777777777777777777777 which fits in bf[23]