Skip to content

Commit

Permalink
Removing functions that should not be used in tree-sitter extractor (…
Browse files Browse the repository at this point in the history
…default to the base extractor level).
  • Loading branch information
adamstorek committed Jul 5, 2022
1 parent 71cb09a commit 726d68e
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions capa/features/extractors/ts/extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import capa.features.extractors.ts.engine
import capa.features.extractors.ts.global_
import capa.features.extractors.ts.function
from capa.features.address import NO_ADDRESS, Address, AbsoluteVirtualAddress
from capa.features.address import NO_ADDRESS, Address, AbsoluteVirtualAddress, FileOffsetRangeAddress
from capa.features.extractors.ts.engine import TreeSitterExtractorEngine
from capa.features.extractors.base_extractor import Feature, BBHandle, InsnHandle, FunctionHandle, FeatureExtractor

Expand Down Expand Up @@ -46,9 +46,3 @@ def extract_insn_features(
self, f: FunctionHandle, bb: BBHandle, insn: InsnHandle
) -> Iterator[Tuple[Feature, Address]]:
yield from []

def is_library_function(self, addr) -> bool:
return False

def get_function_name(self, addr) -> str:
return self.engine.tree.buf[addr.start_byte : addr.end_byte].decode()

0 comments on commit 726d68e

Please sign in to comment.