From 1ba50a879a21a38f63a65b1d898171ae2b0541bb Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Fri, 22 Oct 2021 15:44:30 -0400 Subject: Fix lineardisassembly.py typos These functions were passing the python object to the C API instead of the ctypes handle --- python/lineardisassembly.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'python') diff --git a/python/lineardisassembly.py b/python/lineardisassembly.py index 2c9c9747..b7e80680 100644 --- a/python/lineardisassembly.py +++ b/python/lineardisassembly.py @@ -290,56 +290,56 @@ class LinearViewObject: _settings = settings if _settings is not None: _settings = _settings.handle - return LinearViewObject(core.BNCreateLinearViewLowLevelIL(view.handle, settings)) + return LinearViewObject(core.BNCreateLinearViewLowLevelIL(view.handle, _settings)) @staticmethod def llil_ssa_form(view:'binaryview.BinaryView', settings:Optional['_function.DisassemblySettings'] = None) -> 'LinearViewObject': _settings = settings if _settings is not None: _settings = _settings.handle - return LinearViewObject(core.BNCreateLinearViewLowLevelILSSAForm(view.handle, settings)) + return LinearViewObject(core.BNCreateLinearViewLowLevelILSSAForm(view.handle, _settings)) @staticmethod def mlil(view:'binaryview.BinaryView', settings:Optional['_function.DisassemblySettings'] = None) -> 'LinearViewObject': _settings = settings if _settings is not None: _settings = _settings.handle - return LinearViewObject(core.BNCreateLinearViewMediumLevelIL(view.handle, settings)) + return LinearViewObject(core.BNCreateLinearViewMediumLevelIL(view.handle, _settings)) @staticmethod def mlil_ssa_form(view:'binaryview.BinaryView', settings:Optional['_function.DisassemblySettings'] = None) -> 'LinearViewObject': _settings = settings if _settings is not None: _settings = _settings.handle - return LinearViewObject(core.BNCreateLinearViewMediumLevelILSSAForm(view.handle, settings)) + return LinearViewObject(core.BNCreateLinearViewMediumLevelILSSAForm(view.handle, _settings)) @staticmethod def mmlil(view:'binaryview.BinaryView', settings:Optional['_function.DisassemblySettings'] = None) -> 'LinearViewObject': _settings = settings if _settings is not None: _settings = _settings.handle - return LinearViewObject(core.BNCreateLinearViewMappedMediumLevelIL(view.handle, settings)) + return LinearViewObject(core.BNCreateLinearViewMappedMediumLevelIL(view.handle, _settings)) @staticmethod def mmlil_ssa_form(view:'binaryview.BinaryView', settings:Optional['_function.DisassemblySettings'] = None) -> 'LinearViewObject': _settings = settings if _settings is not None: _settings = _settings.handle - return LinearViewObject(core.BNCreateLinearViewMappedMediumLevelILSSAForm(view.handle, settings)) + return LinearViewObject(core.BNCreateLinearViewMappedMediumLevelILSSAForm(view.handle, _settings)) @staticmethod def hlil(view:'binaryview.BinaryView', settings:Optional['_function.DisassemblySettings'] = None) -> 'LinearViewObject': _settings = settings if _settings is not None: _settings = _settings.handle - return LinearViewObject(core.BNCreateLinearViewHighLevelIL(view.handle, settings)) + return LinearViewObject(core.BNCreateLinearViewHighLevelIL(view.handle, _settings)) @staticmethod def hlil_ssa_form(view:'binaryview.BinaryView', settings:Optional['_function.DisassemblySettings'] = None) -> 'LinearViewObject': _settings = settings if _settings is not None: _settings = _settings.handle - return LinearViewObject(core.BNCreateLinearViewHighLevelILSSAForm(view.handle, settings)) + return LinearViewObject(core.BNCreateLinearViewHighLevelILSSAForm(view.handle, _settings)) class LinearViewCursor: -- cgit v1.3.1