Skip to content

Commit

Permalink
read/macho: fix data for segments in dyld caches
Browse files Browse the repository at this point in the history
Note that this is only for operations on the segment itself.
Sections within the segment were already using the correct data.
  • Loading branch information
philipc committed Apr 26, 2024
1 parent 9650d64 commit e921126
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/read/macho/segment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ where
fn bytes(&self) -> Result<&'data [u8]> {
self.internal
.segment
.data(self.file.endian, self.file.data)
.data(self.file.endian, self.internal.data)
.read_error("Invalid Mach-O segment size or offset")
}
}
Expand Down

0 comments on commit e921126

Please sign in to comment.