Skip to content

Commit 484c641

Browse files
committed
Notify module execution after consuming entry
1 parent d3feb60 commit 484c641

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

qiling/loader/pe_uefi.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,10 +208,14 @@ def execute_module(self, path: str, image_base: int, entry_point: int, context:
208208
self.ql.log.info(f'Running from {entry_point:#010x} of {path}')
209209

210210
def execute_next_module(self):
211-
if not self.modules or self.ql.os.notify_before_module_execution(self.modules[0][0]):
211+
if not self.modules:
212212
return
213213

214214
path, image_base, entry_point, context = self.modules.pop(0)
215+
216+
if self.ql.os.notify_before_module_execution(path):
217+
return
218+
215219
self.execute_module(path, image_base, entry_point, context, context.end_of_execution_ptr)
216220

217221
def __init_dxe_environment(self, ql: Qiling) -> DxeContext:

0 commit comments

Comments
 (0)