Read about our upcoming Code of Conduct on this issue

This instance was upgraded to Heptapod 0.28.0 today

Commit d7761537 authored by alex@thinkpad's avatar alex@thinkpad
Browse files

QEMU: fix overflow in eos_ml_helpers.c (qprintf)

--HG--
branch : qemu
parent 97682a0b1b7f
......@@ -18,7 +18,7 @@ static void print_char(char value)
static int len = 0;
buf[len++] = value;
buf[len] = 0;
if (value == '\n' || value == '\0' || len == COUNT(buf))
if (value == '\n' || value == '\0' || len == COUNT(buf)-1)
{
fprintf(stderr, KBLU"%s"KRESET, buf);
len = 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment