Detlef Riekenberg : shlwapi/tests: Fix a buffer overflow that results in a crash on Win9x.

Alexandre Julliard julliard at winehq.org
Mon Jul 28 08:07:26 CDT 2008


Module: wine
Branch: master
Commit: 63b8624a05ac8b554655ff36c718c9ade2d0a31f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=63b8624a05ac8b554655ff36c718c9ade2d0a31f

Author: Detlef Riekenberg <wine.dev at web.de>
Date:   Sun Jul 27 22:21:22 2008 +0200

shlwapi/tests: Fix a buffer overflow that results in a crash on Win9x.

---

 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;
 




More information about the wine-cvs mailing list