fixed buffer overflow in crypt32/tests/encode test
Marcus Meissner
marcus at jet.franken.de
Sun Oct 7 07:24:41 CDT 2007
22 is not enough.
---
dlls/crypt32/tests/encode.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/crypt32/tests/encode.c b/dlls/crypt32/tests/encode.c
index a459dde..65b6a0f 100644
--- a/dlls/crypt32/tests/encode.c
+++ b/dlls/crypt32/tests/encode.c
@@ -464,7 +464,7 @@ static void testTimeEncoding(DWORD dwEncoding, LPCSTR structType,
static const char *printSystemTime(const SYSTEMTIME *st)
{
- static char buf[22];
+ static char buf[25];
sprintf(buf, "%02d-%02d-%04d %02d:%02d:%02d.%03d", st->wMonth, st->wDay,
st->wYear, st->wHour, st->wMinute, st->wSecond, st->wMilliseconds);
@@ -473,7 +473,7 @@ static const char *printSystemTime(const SYSTEMTIME *st)
static const char *printFileTime(const FILETIME *ft)
{
- static char buf[22];
+ static char buf[25];
SYSTEMTIME st;
FileTimeToSystemTime(ft, &st);
--
1.5.2.4
More information about the wine-patches
mailing list