Skip to content

Commit

Permalink
binexport: remove outdated TODOs
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-hunhoff committed Aug 16, 2024
1 parent afa0215 commit bfbd4ad
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
1 change: 0 additions & 1 deletion capa/features/extractors/binexport2/function.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ def extract_function_loop(fh: FunctionHandle) -> Iterator[Tuple[Feature, Address

edges: List[Tuple[int, int]] = []
for edge in flow_graph.edge:
# TODO (meh): use Edge.is_back_edge pending https://github.com/mandiant/capa/issues/2101
edges.append((edge.source_basic_block_index, edge.target_basic_block_index))

if loops.has_loop(edges):
Expand Down
14 changes: 0 additions & 14 deletions capa/features/extractors/binexport2/insn.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,20 +65,6 @@ def extract_insn_api_features(fh: FunctionHandle, _bbh: BBHandle, ih: InsnHandle
for name in capa.features.extractors.helpers.generate_symbols("", api_name):
yield API(name), ih.address

"""
# TODO: re-enable pending https://github.com/google/binexport/issues/126#issuecomment-2074402906
function_name = vertex.mangled_name
if vertex.HasField("library_index"):
# TODO: this seems to be incorrect for Ghidra extractor
library = be2.library[vertex.library_index]
library_name = library.name
for name in capa.features.extractors.helpers.generate_symbols(library_name, function_name):
yield API(name), ih.address
else:
yield API(function_name), ih.address
"""


def extract_insn_number_features(
fh: FunctionHandle, bbh: BBHandle, ih: InsnHandle
Expand Down

0 comments on commit bfbd4ad

Please sign in to comment.