Skip to content

Commit 93fcba1

Browse files
committed
Fix rebase bug
1 parent f46b96d commit 93fcba1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qiling/loader/pe_uefi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def map_and_load(self, path: str, context: UefiContext, exec_now: bool=False):
9494
pe = PE(path, fast_load=True)
9595

9696
# use image base only if it does not point to NULL
97-
image_base = pe.OPTIONAL_HEADER.ImageBase or self.next_image_base
97+
image_base = pe.OPTIONAL_HEADER.ImageBase or context.next_image_base
9898
image_size = ql.mem.align_up(pe.OPTIONAL_HEADER.SizeOfImage)
9999

100100
assert (image_base % ql.mem.pagesize) == 0, 'image base is expected to be page-aligned'

0 commit comments

Comments
 (0)