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@winehq.org Reporter: programmerjake@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: " \" " \\" " \\\" " \"" " \\"" " \\\""