[Bug 40952] New: improper escaping of quotes in command line
wine-bugs at winehq.org
wine-bugs at winehq.org
Mon Jul 11 18:29:00 CDT 2016
https://bugs.winehq.org/show_bug.cgi?id=40952
Bug ID: 40952
Summary: improper escaping of quotes in command line
Product: Wine
Version: unspecified
Hardware: x86-64
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: kernel32
Assignee: wine-bugs at winehq.org
Reporter: programmerjake at gmail.com
Distribution: ---
invalid quoted argument generation from argv in build_command_line
doesn't double backslashes before the closing quote.
https://github.com/wine-mirror/wine/blob/master/dlls/kernel32/process.c#L752
demo (from bash):
wine cmd /c echo ' \'
wine cmd /c echo ' \\'
wine cmd /c echo ' \\\'
wine cmd /c echo ' \"'
wine cmd /c echo ' \\"'
wine cmd /c echo ' \\\"'
outputs:
" \"
" \\"
" \\\"
" \\\""
" \\\\\""
" \\\\\\\""
should output:
" \\"
" \\\\"
" \\\\\\"
" \\\""
" \\\\\""
" \\\\\\\""
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
More information about the wine-bugs
mailing list