From ba63188f276a7ae3d9d40b081107752df91f89c9 Mon Sep 17 00:00:00 2001 From: Yacine Elhamer <16624109+yelhamer@users.noreply.github.com> Date: Tue, 20 Jun 2023 10:02:57 +0100 Subject: [PATCH] cape/file.py: fix bug in call to helpers.generate_symbols() Co-authored-by: Willi Ballenthin --- capa/features/extractors/cape/file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/capa/features/extractors/cape/file.py b/capa/features/extractors/cape/file.py index 92213c8b..dbaf512d 100644 --- a/capa/features/extractors/cape/file.py +++ b/capa/features/extractors/cape/file.py @@ -40,7 +40,7 @@ def extract_import_names(static: Dict) -> Iterator[Tuple[Feature, Address]]: for library in static["imports"]: for function in library["imports"]: addr = int(function["address"], 16) - for name in generate_symbols(function["name"]): + for name in generate_symbols(library["name"], function["name"]): yield Import(name), AbsoluteVirtualAddress(addr)