diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-02-22 13:43:48 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-02-22 13:56:02 -0500 |
| commit | 0cd89e9176ab36fc5e267120dc4d75cb79d32684 (patch) | |
| tree | c2109735be89fdaf86b55a95d98a4797d086217c /lib/std/c.zig | |
| parent | dca19b67573dc46260b318e9253370fbc628834d (diff) | |
| download | zig-0cd89e9176ab36fc5e267120dc4d75cb79d32684.tar.gz zig-0cd89e9176ab36fc5e267120dc4d75cb79d32684.zip | |
std.os.execvpeZ_expandArg0: fix not restoring argv[0]
This function expands argv[0] into the absolute path resolved with PATH
environment variable before making the execve syscall. However, in case
the execve fails, e.g. with ENOENT, it did not restore argv to how it
was before it was passed in. This resulted in the caller performing an
invalid free.
This commit also adds verbose debug info when native system C compiler
detection fails. See #4521.
Diffstat (limited to 'lib/std/c.zig')
0 files changed, 0 insertions, 0 deletions
