Version and Platform (required):
- Binary Ninja Version: 3.4.4231-dev
- OS: Arch Linux
- OS Version: -
- CPU Architecture: x64
Bug Description:
Can't access value property of an DataVariable because of ValueError: Couldn't find target for type.
Type is enum HRTType.
Steps To Reproduce:
With a python shell:
Python 3.10.10 (main, Mar 5 2023, 22:26:53) [GCC 12.2.1 20230201] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from binaryninja import BinaryViewType
>>> bv = BinaryViewType.get_view_of_file("esentutl.exe")
>>> dv = bv.get_data_var_at(0x140056c08)
>>> dv.value
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/.../BinaryNinja/python/binaryninja/binaryview.py", line 9228, in value
return self._accessor.value
File "/.../BinaryNinja/python/binaryninja/binaryview.py", line 9081, in value
return self._value_helper(self.type, self.view.read(self.address, len(self.type)))
File "/.../BinaryNinja/python/binaryninja/binaryview.py", line 9121, in _value_helper
raise ValueError("Couldn't find target for type")
ValueError: Couldn't find target for type
Expected Behavior:
Access value of DataVariable
Additional Information:
Binary which produces errror: esentutl.tar.gz
Version and Platform (required):
Bug Description:
Can't access
valueproperty of anDataVariablebecause ofValueError: Couldn't find target for type.Type is
enum HRTType.Steps To Reproduce:
With a python shell:
Expected Behavior:
Access value of
DataVariableAdditional Information:
Binary which produces errror: esentutl.tar.gz