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