Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
6c27fa10
Commit
6c27fa10
authored
May 18, 2009
by
Andrew Nguyen
Committed by
Alexandre Julliard
May 18, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Don't validate the command line parameter of CreateProcessW.
parent
b0abafe7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
process.c
dlls/kernel32/process.c
+0
-6
process.c
dlls/kernel32/tests/process.c
+10
-0
No files found.
dlls/kernel32/process.c
View file @
6c27fa10
...
...
@@ -1787,12 +1787,6 @@ static LPWSTR get_file_name( LPCWSTR appname, LPWSTR cmdline, LPWSTR buffer,
return
ret
;
}
if
(
!
cmdline
)
{
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
NULL
;
}
/* first check for a quoted file name */
if
((
cmdline
[
0
]
==
'"'
)
&&
((
p
=
strchrW
(
cmdline
+
1
,
'"'
))))
...
...
dlls/kernel32/tests/process.c
View file @
6c27fa10
...
...
@@ -925,6 +925,16 @@ static void test_CommandLine(void)
okChildStringWA
(
"Arguments"
,
"CommandLineW"
,
buffer2
);
release_memory
();
assert
(
DeleteFileA
(
resfile
)
!=
0
);
if
(
0
)
/* Test crashes on NT-based Windows. */
{
/* Test NULL application name and command line parameters. */
SetLastError
(
0xdeadbeef
);
ret
=
CreateProcessA
(
NULL
,
NULL
,
NULL
,
NULL
,
FALSE
,
0L
,
NULL
,
NULL
,
&
startup
,
&
info
);
ok
(
!
ret
,
"CreateProcessA unexpectedly succeeded
\n
"
);
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"Expected ERROR_INVALID_PARAMETER, got %d
\n
"
,
GetLastError
());
}
}
static
void
test_Directory
(
void
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment