summaryrefslogtreecommitdiff
path: root/tmk_core/common/chibios/printf.c
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2020-01-25 02:57:30 +0000
committerFlorian Didron <fdidron@users.noreply.github.com>2020-02-26 10:15:12 +0900
commit7645e9795bb35aa5b365e06cd8e751d5e1fce378 (patch)
tree72c22bde6bdaf346035f06c88ebc03780121c091 /tmk_core/common/chibios/printf.c
parent9ca1b1b60b3f3b456ee9372410d5d64353a8779f (diff)
Fix printf buffer overflow when cols>16 (#7998)
Diffstat (limited to 'tmk_core/common/chibios/printf.c')
-rw-r--r--tmk_core/common/chibios/printf.c3
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;