From 5b3962f1d110d5ec91fa3bf246ae7f7c0b22a6d8 Mon Sep 17 00:00:00 2001 From: Willi Ballenthin Date: Fri, 23 Aug 2024 10:47:20 +0200 Subject: [PATCH] Update capa/features/extractors/binexport2/extractor.py --- capa/features/extractors/binexport2/extractor.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/capa/features/extractors/binexport2/extractor.py b/capa/features/extractors/binexport2/extractor.py index 29eaf841a..40d61e694 100644 --- a/capa/features/extractors/binexport2/extractor.py +++ b/capa/features/extractors/binexport2/extractor.py @@ -66,6 +66,8 @@ def __init__(self, be2: BinExport2, buf: bytes): self.os.add(feature.value) elif isinstance(feature, Arch): self.arch.add(feature.value) + else: + raise ValueError("unexpected global feature: %s", feature) def get_base_address(self) -> AbsoluteVirtualAddress: return AbsoluteVirtualAddress(self.analysis.base_address)