Skip to content

Commit

Permalink
binexport: add additional debug info to thunk calculation assert
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-hunhoff committed Jun 5, 2024
1 parent 78665fc commit 6efb46e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion capa/features/extractors/binexport2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def _compute_thunks(self):
# because either, len is:
# 0 and the thunk doesn't point to anything, or
# >1 and the thunk may end up at many functions.
assert len(thunk_callees) == 1
assert len(thunk_callees) == 1, f"thunk @ {hex(addr)} failed"

thunked_idx: int = thunk_callees[0]
thunked_vertex: BinExport2.CallGraph.Vertex = self.be2.call_graph.vertex[thunked_idx]
Expand Down

0 comments on commit 6efb46e

Please sign in to comment.