Skip to content

Commit

Permalink
Fix no memory to map (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
sledgeh4w authored Oct 19, 2024
1 parent 5bd76f0 commit 3192ab8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chomper/os/ios/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def _map_segments(self, binary: lief.MachO.Binary, module_base: int) -> int:
boundary = 0

for segment in binary.segments:
if not segment.virtual_size:
if not segment.virtual_size or segment.name == "__PAGEZERO":
continue

seg_addr = module_base + segment.virtual_address
Expand Down

0 comments on commit 3192ab8

Please sign in to comment.