mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-28 00:02:28 +00:00
Add some tests for execve()
This commit is contained in:
parent
2526a9b8c7
commit
daca5499b9
6 changed files with 81 additions and 14 deletions
|
@ -35,11 +35,9 @@
|
|||
/**
|
||||
* Replaces current process with program.
|
||||
*
|
||||
* Warning: Our implementation of argument escaping on Windows hasn't
|
||||
* been security reviewed for optimal handling of malicious arguments
|
||||
* when interoperating with commonly used software. We make an effort
|
||||
* to follow the same conventions as other FOSS software, e.g. PuTTY,
|
||||
* however each WIN32 app is permitted to tokenize args how it wants.
|
||||
* On Windows, `argv` and `envp` can't contain binary strings. They need
|
||||
* to be valid UTF-8 in order to round-trip the WIN32 API, without being
|
||||
* corrupted.
|
||||
*
|
||||
* @param program will not be PATH searched, see commandv()
|
||||
* @param argv[0] is the name of the program to run
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue