diff --git a/CHANGELOG.md b/CHANGELOG.md index bfeeb12b..b59edb1a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -46,6 +46,8 @@ - fix: render_default always returns empty string @williballenthin #3012 +- fix: freeze/__init__.py: logically impossible condition @williballenthin #3030 + ### capa Explorer Web ### capa Explorer IDA Pro plugin diff --git a/capa/features/freeze/__init__.py b/capa/features/freeze/__init__.py index 5ea45253..c975aeba 100644 --- a/capa/features/freeze/__init__.py +++ b/capa/features/freeze/__init__.py @@ -102,9 +102,6 @@ class Address(HashableModel): elif a == capa.features.address.NO_ADDRESS or isinstance(a, capa.features.address._NoAddress): return cls(type=AddressType.NO_ADDRESS, value=None) - elif isinstance(a, capa.features.address.Address) and not issubclass(type(a), capa.features.address.Address): - raise ValueError("don't use an Address instance directly") - elif isinstance(a, capa.features.address.Address): raise ValueError("don't use an Address instance directly")