Skip to content

Commit

Permalink
Fix: .image tries to load and image=True expects to load
Browse files Browse the repository at this point in the history
  • Loading branch information
psrok1 committed Oct 11, 2023
1 parent 543eff3 commit bc4fcc0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions malduck/procmem/binmem.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ def load_binaries_from_memory(cls: Type[T], procmem: ProcessMemory) -> Iterator[
binary_procmem_dmp = cls.from_memory(procmem, base=binary_va)
if binary_procmem_dmp.is_valid():
yield binary_procmem_dmp
binary_procmem_img = cls.from_memory(procmem, base=binary_va, image=True)
if binary_procmem_img.is_valid():
binary_procmem_img = binary_procmem_dmp.image
if binary_procmem_img and binary_procmem_img.is_valid():
yield binary_procmem_img

@abstractmethod
Expand Down
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@ ignore_missing_imports = True

[mypy-ida_bytes.*]
ignore_missing_imports = True

[mypy-dnfile.*]
ignore_missing_imports = True

0 comments on commit bc4fcc0

Please sign in to comment.