From 98d14823e8c647881056866d1c15782e97a22637 Mon Sep 17 00:00:00 2001 From: Han Dai Date: Sat, 29 Jun 2024 10:57:23 -0400 Subject: [PATCH] definately didn't expect this --- .../components/allocation_managers/allocation_manager.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/patcherex2/components/allocation_managers/allocation_manager.py b/src/patcherex2/components/allocation_managers/allocation_manager.py index 192ba17..0af5f69 100644 --- a/src/patcherex2/components/allocation_managers/allocation_manager.py +++ b/src/patcherex2/components/allocation_managers/allocation_manager.py @@ -161,7 +161,7 @@ def _create_new_mapped_block( for block in self.blocks[FileBlock]: if block.size == -1: file_addr = block.addr - block.addr += 0x2000 + block.addr += 0x10000 for block in self.blocks[MemoryBlock]: if block.size == -1: # NOTE: mem_addr % p_align should equal to file_addr % p_align @@ -177,13 +177,13 @@ def _create_new_mapped_block( mem_addr = block.addr + (file_addr % max_seg_align) else: mem_addr = block.addr + (file_addr % 0x1000) - block.addr = mem_addr + 0x2000 + block.addr = mem_addr + 0x10000 if file_addr and mem_addr: self.add_block( - MappedBlock(file_addr, mem_addr, 0x2000, is_free=True, flag=flag) + MappedBlock(file_addr, mem_addr, 0x10000, is_free=True, flag=flag) ) self.new_mapped_blocks.append( - MappedBlock(file_addr, mem_addr, 0x2000, is_free=True, flag=flag) + MappedBlock(file_addr, mem_addr, 0x10000, is_free=True, flag=flag) ) return True return False