Skip to content

Commit e921126

Browse files
committed
read/macho: fix data for segments in dyld caches
Note that this is only for operations on the segment itself. Sections within the segment were already using the correct data.
1 parent 9650d64 commit e921126

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/read/macho/segment.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ where
6969
fn bytes(&self) -> Result<&'data [u8]> {
7070
self.internal
7171
.segment
72-
.data(self.file.endian, self.file.data)
72+
.data(self.file.endian, self.internal.data)
7373
.read_error("Invalid Mach-O segment size or offset")
7474
}
7575
}

0 commit comments

Comments
 (0)