Add some tests for execve()

This commit is contained in:
Justine Tunney 2022-10-02 14:58:14 -07:00
parent 2526a9b8c7
commit daca5499b9
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
6 changed files with 81 additions and 14 deletions

View file

@ -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