~ruther/qmk_firmware

d4ccb2e0e6bd7ab976533ec2c0d62a8042bb5bc6 — Joel Challis 5 years ago 5e65af3
Fix printf buffer overflow when cols>16 (#7998)

1 files changed, 2 insertions(+), 1 deletions(-)

M tmk_core/common/chibios/printf.c
M tmk_core/common/chibios/printf.c => tmk_core/common/chibios/printf.c +2 -1
@@ 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;