mirror of
https://github.com/ziglang/zig.git
synced 2026-02-20 00:08:56 +00:00
fix UAF in build runner
This commit is contained in:
parent
8acbfafefb
commit
81376e7205
@ -309,7 +309,7 @@ fn runStepNames(
|
||||
}
|
||||
}
|
||||
|
||||
const starting_steps = step_stack.items;
|
||||
const starting_steps = try b.allocator.dupe(*Step, step_stack.items);
|
||||
for (starting_steps) |s| {
|
||||
checkForDependencyLoop(b, s, &step_stack) catch |err| switch (err) {
|
||||
error.DependencyLoopDetected => return error.UncleanExit,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user