From 726d68ed10643a3b7b0e55fa7c32b64ceda55624 Mon Sep 17 00:00:00 2001 From: Adam Storek Date: Tue, 5 Jul 2022 12:11:11 -0400 Subject: [PATCH] Removing functions that should not be used in tree-sitter extractor (default to the base extractor level). --- capa/features/extractors/ts/extractor.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/capa/features/extractors/ts/extractor.py b/capa/features/extractors/ts/extractor.py index 75b1830979..37b24cdf35 100644 --- a/capa/features/extractors/ts/extractor.py +++ b/capa/features/extractors/ts/extractor.py @@ -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 @@ -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()