authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-10-01 15:43:48+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-10-01 15:51:29+02:00
log4f07ceaf8e6ba13bbd062bc8d8f9a64a6ac50713
tree27880f23e2152808744742bf0c0b9364ed8586b8
parent7e35037eac561dc0b22545269075ae548c16a667
signature Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

link: reserve required capacities in resolveFrameworkInput()

Bug introduced in ed833ab31c93a937c2dafe14346a8cf928da474e. closes https://codeberg.org/ziglang/zig/issues/37034

1 files changed, 3 insertions(+), 0 deletions(-)

src/link.zig+3
......@@ -2587,6 +2587,9 @@ fn resolveFrameworkInput(
25872587 framework_directory: Directory,
25882588 framework_query: UnresolvedInput.FrameworkQuery,
25892589) Allocator.Error!ResolveLibInputResult {
2590 try resolved_inputs.ensureUnusedCapacity(gpa, 1);
2591 try archive_dedup.ensureUnusedCapacity(gpa, 1);
2592
25902593 const sep = std.fs.path.sep_str;
25912594
25922595 tbd: {