zig/src-self-hosted
Andrew Kelley 0cd89e9176
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.
2020-02-22 13:56:02 -05:00
..
c_int.zig
c.zig self-hosted libc detection 2020-02-16 13:25:30 -05:00
clang.zig translate-c: Don't make const parameters mutable. (#4273) 2020-01-24 15:32:32 -05:00
codegen.zig Add InstallRawStep to Zig build system that does a similar job to llvm-objcopy. To use it, do 'exe.installRaw("kernel.bin");' where exe is a LibExeObjStep 2020-02-03 15:07:34 -05:00
compilation.zig skip self-hosted for now as we work towards async I/O 2020-02-07 12:30:16 -05:00
decl.zig
dep_tokenizer.zig std.fmt.format: comptime output parameter 2020-02-05 16:52:18 -05:00
errmsg.zig
introspect.zig self-host dynamic linker detection 2020-02-17 15:23:59 -05:00
ir.zig
libc_installation.zig std.os.execvpeZ_expandArg0: fix not restoring argv[0] 2020-02-22 13:56:02 -05:00
link.zig Add InstallRawStep to Zig build system that does a similar job to llvm-objcopy. To use it, do 'exe.installRaw("kernel.bin");' where exe is a LibExeObjStep 2020-02-03 15:07:34 -05:00
llvm.zig
main.zig skip self-hosted for now as we work towards async I/O 2020-02-07 12:30:16 -05:00
package.zig
print_targets.zig remove the concept of "sub-architecture" 2020-02-19 21:30:36 -05:00
scope.zig
stage2.zig std.os.execvpeZ_expandArg0: fix not restoring argv[0] 2020-02-22 13:56:02 -05:00
test.zig Fix remaining variadic formatted prints 2020-01-09 13:36:44 -05:00
translate_c.zig translate-c: change OutOfMemory → ASTUnitFailure 2020-02-15 05:14:31 -05:00
type.zig Fix remaining variadic formatted prints 2020-01-09 13:36:44 -05:00
util.zig self-host dynamic linker detection 2020-02-17 15:23:59 -05:00
value.zig
visib.zig
windows_sdk.zig self-hosted libc detection 2020-02-16 13:25:30 -05:00