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 {
25112511 for (rpaths) |rpath| {
25122512 const cmdsize = @intCast(u32, mem.alignForwardGeneric(
25132513 u64,
2514 @sizeOf(macho.rpath_command) + rpath.len,
2514 @sizeOf(macho.rpath_command) + rpath.len + 1,
25152515 @sizeOf(u64),
25162516 ));
25172517 var rpath_cmd = emptyGenericCommandWithData(macho.rpath_command{