bpo-31446: copy command line that should be passed to CreateProcessW#11141
Conversation
|
Great! I wanted to suggest the same as @eryksun. |
|
Thanks @vladima for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 2.7, 3.6, 3.7. |
|
Sorry, @vladima and @serhiy-storchaka, I could not cleanly backport this to |
|
Sorry, @vladima and @serhiy-storchaka, I could not cleanly backport this to |
|
Sorry, @vladima and @serhiy-storchaka, I could not cleanly backport this to |
…cessW(). (pythonGH-11141). (cherry picked from commit 7b36016) Co-authored-by: Vladimir Matveev <v2matveev@outlook.com>
|
GH-11149 is a backport of this pull request to the 3.7 branch. |
Create a copy of the buffer containing the command line before passing it to
CreateProcessW- internally this function can mutate input buffer and this effect is observable for other users that can work with the same input string in different threads.https://bugs.python.org/issue31446