diff options
author | Joel Challis <git@zvecr.com> | 2020-01-25 02:57:30 +0000 |
---|---|---|
committer | Danny <nooges@users.noreply.github.com> | 2020-01-24 21:57:30 -0500 |
commit | d4ccb2e0e6bd7ab976533ec2c0d62a8042bb5bc6 (patch) | |
tree | d1b27cbdbd0db497c3c14bae62c5ca66adbe6b19 | |
parent | 5e65af3a76252bea6556d26add3061dea4918cc2 (diff) | |
download | qmk_firmware-d4ccb2e0e6bd7ab976533ec2c0d62a8042bb5bc6.tar.gz qmk_firmware-d4ccb2e0e6bd7ab976533ec2c0d62a8042bb5bc6.zip |
Fix printf buffer overflow when cols>16 (#7998)
-rw-r--r-- | tmk_core/common/chibios/printf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tmk_core/common/chibios/printf.c b/tmk_core/common/chibios/printf.c index dcf33f35f8..3a81acd312 100644 --- a/tmk_core/common/chibios/printf.c +++ b/tmk_core/common/chibios/printf.c @@ -120,7 +120,8 @@ static void putchw(void* putp, putcf putf, int n, char z, char* bf) { } void tfp_format(void* putp, putcf putf, char* fmt, va_list va) { - char bf[12]; + // This used to handle max of 12, but binary support jumps this to at least 32 + char bf[36]; char ch; |