Overview
| Artifact ID: | db35f7bbc2103867aa96a712292579440e6956a143b5d294147897b61f0b2732 |
|---|---|
| Ticket: | 344b1a0c0f0e2fda1e4ad6520cbf5e0af35eb332
exec on Windows broken when '%' is used |
| User & Date: | sebres on 2020-08-04 17:56:38 |
Changes
- icomment:
> Is this trying to fix a vulnerability in Windows? Or Tcl? Basically both (or rather tcl's exec escape for windows, since an escape is already there, just it was wrong (vulnerable) before my fix in [21b0629c81] and it is still wrong (but not vulnerable anymore) now. And yes, I'll try to restore the backwards compatibility with preserving of the vulnerability fix simultaneously (as safe as possible). Your sentence from duplicate ticket "On Windows, the program should receive the arguments as is, as on windows, the programs parse the arguments, not the shell." is incorrect in my opinion, because in such a case the escape and quotation should be completely removed (belongs to the user task) but Tcl has from scratch tried to follow posix execv semantic, so had implement escape/quotation for windows simulating that (just partially, so not enough safe because impossibly).
- login: "sebres"
- mimetype: "text/x-fossil-wiki"