Commit ab9077d6 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcrt: Fixed buffer overflow in snprintf functions family.

Spotted by Andrew Miller.
parent 129021a0
...@@ -56,6 +56,7 @@ static int FUNC_NAME(puts_clbk_str)(void *ctx, int len, const APICHAR *str) ...@@ -56,6 +56,7 @@ static int FUNC_NAME(puts_clbk_str)(void *ctx, int len, const APICHAR *str)
memcpy(out->buf, str, len*sizeof(APICHAR)); memcpy(out->buf, str, len*sizeof(APICHAR));
out->buf += len; out->buf += len;
out->len -= len;
return len; return len;
} }
......
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