cjlano / tinyprintf

A tiny printf and sprintf library for small embedded systems

Home Page:http://www.sparetimelabs.com/tinyprintf/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Long support: Buffer overflow

cjlano opened this issue · comments

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]

Fixed in 703f48c