Skip to content

Commit

Permalink
Merge branch 'dynamic-feature-extraction' of https://github.com/mandi…
Browse files Browse the repository at this point in the history
…ant/capa into dynamic-feature-extraction
  • Loading branch information
yelhamer committed Oct 16, 2023
2 parents ffe6ab6 + d1b7afb commit a1aca3a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions capa/render/verbose.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,12 @@ def format_address(address: frz.Address) -> str:
assert isinstance(pid, int)
return f"process ppid: {ppid}, process pid: {pid}"
elif address.type == frz.AddressType.THREAD:
assert isinstance(address.value, int)
tid = address.value
assert isinstance(address.value, tuple)
ppid, pid, tid = address.value
assert isinstance(ppid, int)
assert isinstance(pid, int)
assert isinstance(tid, int)
return f"thread id: {tid}"
return f"process ppid: {ppid}, process pid: {pid}, thread id: {tid}"
elif address.type == frz.AddressType.CALL:
assert isinstance(address.value, tuple)
ppid, pid, tid, id_ = address.value
Expand Down

0 comments on commit a1aca3a

Please sign in to comment.