Skip to content

Commit c05972f

Browse files
authored
Merge pull request #1144 from chinggg/fix-unmap_all
fix(memory): remove misused region bound check of unmap_all
2 parents 7c6b804 + fe76d4f commit c05972f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

qiling/os/memory.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,8 +419,7 @@ def unmap_all(self):
419419
"""
420420

421421
for begin, end, _ in self.ql.uc.mem_regions():
422-
if begin and end:
423-
self.unmap(begin, end - begin + 1)
422+
self.unmap(begin, end - begin + 1)
424423

425424
def is_available(self, addr: int, size: int) -> bool:
426425
"""Query whether the memory range starting at `addr` and is of length of `size` bytes

0 commit comments

Comments
 (0)