From 69d65ae472e725726d3c33f23c486d2c871ef8c7 Mon Sep 17 00:00:00 2001 From: pentuppup Date: Wed, 1 Jul 2026 14:26:09 -0400 Subject: [PATCH] fix UAF in maker --- lib/compiler/Maker.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/compiler/Maker.zig b/lib/compiler/Maker.zig index ef7c995d801e48b7fa6020e6481c7a47d7c0e857..0da5d000a41f9952954acf834f110afb161c9482 100644 --- a/lib/compiler/Maker.zig +++ b/lib/compiler/Maker.zig @@ -1254,7 +1254,7 @@ fn configure(graph: *Graph, options: ConfigureOptions) !ScannedConfig { const tmp_dir_sub_path = "tmp" ++ Dir.path.sep_str ++ std.fmt.hex(rand_int); const config_tmp_path: Path = .{ .root_dir = graph.local_cache_root, - .sub_path = tmp_dir_sub_path, + .sub_path = try arena.dupe(u8, tmp_dir_sub_path), }; const config_tmp_file: Io.File = try config_tmp_path.root_dir.handle.createFile( io, -- 2.54.0