From ab9077d64084b51d2807fe807ea4641ab8d41419 Mon Sep 17 00:00:00 2001 From: Piotr Caban Date: Mon, 6 Jun 2011 14:02:30 +0200 Subject: [PATCH] msvcrt: Fixed buffer overflow in snprintf functions family. Spotted by Andrew Miller. --- dlls/msvcrt/printf.h | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/msvcrt/printf.h b/dlls/msvcrt/printf.h index a69e8f8b6d6..eefecd12777 100644 --- a/dlls/msvcrt/printf.h +++ b/dlls/msvcrt/printf.h @@ -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)); out->buf += len; + out->len -= len; return len; }