Mikołaj Zalewski : shell32: shlfileop tests: Avoid buffer overflows for paths.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Feb 7 04:53:15 CST 2007


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

Author: Mikołaj Zalewski <mikolaj at zalewski.pl>
Date:   Sun Feb  4 23:52:39 2007 +0100

shell32: shlfileop tests: Avoid buffer overflows for paths.

---

 dlls/shell32/tests/shlfileop.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/dlls/shell32/tests/shlfileop.c b/dlls/shell32/tests/shlfileop.c
index b363c5e..23aaeba 100644
--- a/dlls/shell32/tests/shlfileop.c
+++ b/dlls/shell32/tests/shlfileop.c
@@ -329,8 +329,8 @@ static void test_delete(void)
 static void test_rename(void)
 {
     SHFILEOPSTRUCTA shfo, shfo2;
-    CHAR from[MAX_PATH];
-    CHAR to[MAX_PATH];
+    CHAR from[5*MAX_PATH];
+    CHAR to[5*MAX_PATH];
     DWORD retval;
 
     shfo.hwnd = NULL;
@@ -438,8 +438,8 @@ static void test_rename(void)
 static void test_copy(void)
 {
     SHFILEOPSTRUCTA shfo, shfo2;
-    CHAR from[MAX_PATH];
-    CHAR to[MAX_PATH];
+    CHAR from[5*MAX_PATH];
+    CHAR to[5*MAX_PATH];
     FILEOP_FLAGS tmp_flags;
     DWORD retval;
 
@@ -767,8 +767,8 @@ static void test_copy(void)
 static void test_move(void)
 {
     SHFILEOPSTRUCTA shfo, shfo2;
-    CHAR from[MAX_PATH];
-    CHAR to[MAX_PATH];
+    CHAR from[5*MAX_PATH];
+    CHAR to[5*MAX_PATH];
     DWORD retval;
 
     shfo.hwnd = NULL;




More information about the wine-cvs mailing list