Corinna Vinschen 530b866c8e Cygwin: fix quoting when starting invisible console process
fhandler_console::create_invisible_console_workaround() does not use the
lpApplicationName parameter and neglects to quote its command name on
lpCommandLine in the call to CreateProcessW.

Given CreateProcessW's brain-dead method to evaluate the application
path given on the command line, this opens up a security problem if
Cygwin is installed into a path with spaces in it.

Fix this by using the lpApplicationName parameter and quoting of the
application path in the lpCommandLine parameter (used as argv[0] in
the called console helper.

For extended paranoia, make the argument string array big enough to
fit full 64 bit pointer values into it.  Handles usually only use
the lower 32 bit, but better safe than sorry.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2019-11-05 11:51:55 +01:00
..
2016-11-24 16:09:31 +01:00
2013-04-30 23:43:08 +00:00
2012-11-23 13:22:47 +00:00
2016-06-25 00:43:01 +02:00
2019-07-25 10:45:52 +02:00
2019-10-23 10:05:42 +02:00
2019-10-23 10:05:42 +02:00
2014-04-26 17:38:22 +00:00
2018-02-20 17:59:53 +01:00
2015-03-03 12:58:34 +00:00
2017-03-27 22:03:58 +01:00
2015-08-17 11:05:43 +02:00
2013-04-23 09:44:36 +00:00
2019-04-16 12:54:43 +02:00
2018-04-16 22:46:11 -05:00
2018-02-07 13:07:44 +01:00
2013-04-23 09:44:36 +00:00
2019-06-25 15:44:43 -04:00
2019-06-25 15:44:43 -04:00
2019-07-19 14:14:33 -04:00