shell32: shlfileop tests: Avoid buffer overflows for paths.
This commit is contained in:
parent
8e52754226
commit
dbef32e4ed
|
@ -329,8 +329,8 @@ static void test_delete(void)
|
||||||
static void test_rename(void)
|
static void test_rename(void)
|
||||||
{
|
{
|
||||||
SHFILEOPSTRUCTA shfo, shfo2;
|
SHFILEOPSTRUCTA shfo, shfo2;
|
||||||
CHAR from[MAX_PATH];
|
CHAR from[5*MAX_PATH];
|
||||||
CHAR to[MAX_PATH];
|
CHAR to[5*MAX_PATH];
|
||||||
DWORD retval;
|
DWORD retval;
|
||||||
|
|
||||||
shfo.hwnd = NULL;
|
shfo.hwnd = NULL;
|
||||||
|
@ -438,8 +438,8 @@ static void test_rename(void)
|
||||||
static void test_copy(void)
|
static void test_copy(void)
|
||||||
{
|
{
|
||||||
SHFILEOPSTRUCTA shfo, shfo2;
|
SHFILEOPSTRUCTA shfo, shfo2;
|
||||||
CHAR from[MAX_PATH];
|
CHAR from[5*MAX_PATH];
|
||||||
CHAR to[MAX_PATH];
|
CHAR to[5*MAX_PATH];
|
||||||
FILEOP_FLAGS tmp_flags;
|
FILEOP_FLAGS tmp_flags;
|
||||||
DWORD retval;
|
DWORD retval;
|
||||||
|
|
||||||
|
@ -767,8 +767,8 @@ static void test_copy(void)
|
||||||
static void test_move(void)
|
static void test_move(void)
|
||||||
{
|
{
|
||||||
SHFILEOPSTRUCTA shfo, shfo2;
|
SHFILEOPSTRUCTA shfo, shfo2;
|
||||||
CHAR from[MAX_PATH];
|
CHAR from[5*MAX_PATH];
|
||||||
CHAR to[MAX_PATH];
|
CHAR to[5*MAX_PATH];
|
||||||
DWORD retval;
|
DWORD retval;
|
||||||
|
|
||||||
shfo.hwnd = NULL;
|
shfo.hwnd = NULL;
|
||||||
|
|
Loading…
Reference in New Issue