aboutsummaryrefslogtreecommitdiff
path: root/lib/std/unicode.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-02-22 13:43:48 -0500
committerAndrew Kelley <andrew@ziglang.org>2020-02-22 13:56:02 -0500
commit0cd89e9176ab36fc5e267120dc4d75cb79d32684 (patch)
treec2109735be89fdaf86b55a95d98a4797d086217c /lib/std/unicode.zig
parentdca19b67573dc46260b318e9253370fbc628834d (diff)
downloadzig-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/unicode.zig')
0 files changed, 0 insertions, 0 deletions