fix(freeze): use get_base_address in dumps_dynamic

Signed-off-by: blenbot <harshitiszz23@gmail.com>
This commit is contained in:
blenbot 2026-03-18 23:24:50 +05:30 committed by Willi Ballenthin
parent 7090aa9c37
commit 6579e01d15

View file

@ -543,7 +543,7 @@ def dumps_dynamic(extractor: DynamicFeatureExtractor) -> str:
# Mypy is unable to recognise `global_` as an argument due to alias
# workaround around mypy issue: https://github.com/python/mypy/issues/1424
get_base_addr = getattr(extractor, "get_base_addr", None)
get_base_addr = getattr(extractor, "get_base_address", None)
base_addr = get_base_addr() if get_base_addr else capa.features.address.NO_ADDRESS
freeze = Freeze(