diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-12-30 23:14:34 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-01-02 13:16:17 -0700 |
| commit | 9dc25dd0b695c907e861bfd5a974cf454e657228 (patch) | |
| tree | ef5b97ab68330ec2b2b9a018b53d1e79aeef19f7 /src/Compilation.zig | |
| parent | 55243cfb31e40f09503fbc5b4bb63e7a5d3d87eb (diff) | |
| download | zig-9dc25dd0b695c907e861bfd5a974cf454e657228.tar.gz zig-9dc25dd0b695c907e861bfd5a974cf454e657228.zip | |
stage2: fix UAF of system_libs
Diffstat (limited to 'src/Compilation.zig')
| -rw-r--r-- | src/Compilation.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index 5b14eacc06..8b761cd450 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -1985,7 +1985,7 @@ pub fn update(comp: *Compilation) !void { // This resets the link.File to operate as if we called openPath() in create() // instead of simulating -fno-emit-bin. - var options = comp.bin_file.options; + var options = comp.bin_file.options.move(); if (comp.whole_bin_sub_path) |sub_path| { options.emit = .{ .directory = tmp_artifact_directory.?, |
