Read about our upcoming Code of Conduct on this issue

Commit 3fac85e4 authored by alex@thinkpad's avatar alex@thinkpad
Browse files

QEMU: fixed underflow in debugmsg.c

(found with ASan)

--HG--
branch : qemu
parent 5aad324b3ef2
......@@ -76,7 +76,7 @@ void DebugMsg_log(EOSState * s)
// Skip if it fills format buffer or is {long long} or {short} type
// (I've never seen those in EOS code)
if (n == COUNT(format_string) || format_string[n-3] == 'h' || (n >= 4 && format_string[n-3] == 'l'))
if (n == COUNT(format_string) || (n >= 4 && (format_string[n-3] == 'h' || format_string[n-3] == 'l')))
{
APPEND(KERR);
APPEND("[FORMATTING_ERROR]");
......
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