From fd4e9e9e898015ab4d320193383d0f673913f44b Mon Sep 17 00:00:00 2001 From: rihi <19492038+rihi@users.noreply.github.com> Date: Thu, 5 Sep 2024 12:56:05 +0200 Subject: [PATCH] Fix --- decompiler/frontend/binaryninja/handlers/constants.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/decompiler/frontend/binaryninja/handlers/constants.py b/decompiler/frontend/binaryninja/handlers/constants.py index 46b85aad..8c547ead 100644 --- a/decompiler/frontend/binaryninja/handlers/constants.py +++ b/decompiler/frontend/binaryninja/handlers/constants.py @@ -29,8 +29,8 @@ def lift_constant(self, constant: mediumlevelil.MediumLevelILConst, **kwargs): """Lift the given constant value.""" if constant.constant in [math.inf, -math.inf, math.nan]: return NotUseableConstant(str(constant.constant)) - # if isinstance(constant.constant, int) and addr_in_section(constant.function.view, constant.constant): - # return self.lift_constant_pointer(constant) + if isinstance(constant.constant, int) and addr_in_section(constant.function.view, constant.constant): + return self.lift_constant_pointer(constant) return Constant(constant.constant, vartype=self._lifter.lift(constant.expr_type)) @staticmethod