From 4f07ceaf8e6ba13bbd062bc8d8f9a64a6ac50713 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Thu, 1 Oct 2026 15:43:48 +0200 Subject: [PATCH] link: reserve required capacities in resolveFrameworkInput() Bug introduced in ed833ab31c93a937c2dafe14346a8cf928da474e. closes https://codeberg.org/ziglang/zig/issues/37034 --- src/link.zig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/link.zig b/src/link.zig index a704a59a2819019b0d6906a1ea49a06966de1e30..be4505c462076a5b4ee900db75e16ede3e05e6c3 100644 --- a/src/link.zig +++ b/src/link.zig @@ -2587,6 +2587,9 @@ fn resolveFrameworkInput( framework_directory: Directory, framework_query: UnresolvedInput.FrameworkQuery, ) Allocator.Error!ResolveLibInputResult { + try resolved_inputs.ensureUnusedCapacity(gpa, 1); + try archive_dedup.ensureUnusedCapacity(gpa, 1); + const sep = std.fs.path.sep_str; tbd: { -- 2.54.0