authorgravatar for michael.dusan@gmail.comMichael Dusan <michael.dusan@gmail.com> 2021-06-17 23:57:24-04:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2021-06-18 15:22:10+02:00
loge006281d79a31e10bdbc07b3e33427d719ec01df
tree06c0d704448fb944028f103c51170588e7b7fd8e
parent1f29b75f082660bf8393da5c41cd4ca855f5db88

macho: LC_RPATH: reserve byte for null-terminator


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

src/link/MachO/Zld.zig+1-1
...@@ -2511,7 +2511,7 @@ fn addRpaths(self: *Zld, rpaths: []const []const u8) !void {...@@ -2511,7 +2511,7 @@ fn addRpaths(self: *Zld, rpaths: []const []const u8) !void {
2511 for (rpaths) |rpath| {2511 for (rpaths) |rpath| {
2512 const cmdsize = @intCast(u32, mem.alignForwardGeneric(2512 const cmdsize = @intCast(u32, mem.alignForwardGeneric(
2513 u64,2513 u64,
2514 @sizeOf(macho.rpath_command) + rpath.len,2514 @sizeOf(macho.rpath_command) + rpath.len + 1,
2515 @sizeOf(u64),2515 @sizeOf(u64),
2516 ));2516 ));
2517 var rpath_cmd = emptyGenericCommandWithData(macho.rpath_command{2517 var rpath_cmd = emptyGenericCommandWithData(macho.rpath_command{