summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorsebres <sebres@users.sourceforge.net>2018-08-20 14:35:44 (GMT)
committersebres <sebres@users.sourceforge.net>2018-08-20 14:35:44 (GMT)
commit26b477b907a50ee208b80c65849b93a8dcfea948 (patch)
tree66461e02f807502843bb540ac6017933a445db7a /tests
parentaed158b5189a8d32312907d0c388e7ae9826f92f (diff)
downloadtcl-26b477b907a50ee208b80c65849b93a8dcfea948.zip
tcl-26b477b907a50ee208b80c65849b93a8dcfea948.tar.gz
tcl-26b477b907a50ee208b80c65849b93a8dcfea948.tar.bz2
win: fixes [21b0629c81] - exec/open process pipe under windows (0-day vulnerability - insufficient escape)
Diffstat (limited to 'tests')
-rw-r--r--tests/winPipe.test8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/winPipe.test b/tests/winPipe.test
index f993e0c..c5d3846 100644
--- a/tests/winPipe.test
+++ b/tests/winPipe.test
@@ -323,22 +323,22 @@ test winpipe-7.2 {BuildCommandLine: null arguments} {win exec} {
} {foo "" bar}
test winpipe-7.3 {BuildCommandLine: dbl quote quoting #1} {win exec} {
exec $env(COMSPEC) /c echo foo "\"" bar
-} {foo \" bar}
+} {foo "\"" bar}
test winpipe-7.4 {BuildCommandLine: dbl quote quoting #2} {win exec} {
exec $env(COMSPEC) /c echo foo {""} bar
-} {foo \"\" bar}
+} {foo "\"\"" bar}
test winpipe-7.5 {BuildCommandLine: dbl quote quoting #3} {win exec} {
exec $env(COMSPEC) /c echo foo "\" " bar
} {foo "\" " bar}
test winpipe-7.6 {BuildCommandLine: dbl quote quoting #4} {win exec} {
exec $env(COMSPEC) /c echo foo {a="b"} bar
-} {foo a=\"b\" bar}
+} {foo "a=\"b\"" bar}
test winpipe-7.7 {BuildCommandLine: dbl quote quoting #5} {win exec} {
exec $env(COMSPEC) /c echo foo {a = "b"} bar
} {foo "a = \"b\"" bar}
test winpipe-7.8 {BuildCommandLine: dbl quote quoting #6} {win exec} {
exec $env(COMSPEC) /c echo {"hello"} {""hello""} {"""hello"""} {"\"hello\""} {he llo} "he \" llo"
-} {\"hello\" \"\"hello\"\" \"\"\"hello\"\"\" \"\\\"hello\\\"\" "he llo" "he \" llo"}
+} {"\"hello\"" "\"\"hello\"\"" "\"\"\"hello\"\"\"" "\"\\\"hello\\\"\"" "he llo" "he \" llo"}
test winpipe-7.9 {BuildCommandLine: N backslashes followed a quote rule #1} {win exec} {
exec $env(COMSPEC) /c echo foo \\ bar
} {foo \ bar}