[PATCH] shlwapi/tests: Fix a buffer-overflow, that result in a crash on Win9x
Detlef Riekenberg
wine.dev at web.de
Sun Jul 27 15:21:22 CDT 2008
---
dlls/shlwapi/tests/path.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/shlwapi/tests/path.c b/dlls/shlwapi/tests/path.c
index e6b6548..07257d7 100644
--- a/dlls/shlwapi/tests/path.c
+++ b/dlls/shlwapi/tests/path.c
@@ -799,7 +799,7 @@ static void test_PathAppendA(void)
static void test_PathCanonicalizeA(void)
{
- char dest[MAX_PATH];
+ char dest[LONG_LEN + MAX_PATH];
char too_long[LONG_LEN];
BOOL res;
--
1.5.4.3
--=-7wTc9ut2XqNXw9+5h1uf--
More information about the wine-patches
mailing list