diff options
| author | Glenn Smith <glenn@vector35.com> | 2021-10-22 15:44:30 -0400 |
|---|---|---|
| committer | Glenn Smith <glenn@vector35.com> | 2021-10-22 15:44:30 -0400 |
| commit | 1ba50a879a21a38f63a65b1d898171ae2b0541bb (patch) | |
| tree | 6fce7a90feea43fe016c552d0231efc98dddcc8a /python | |
| parent | 1861bcebbe78d945102135d94b88d0c367c9200f (diff) | |
Fix lineardisassembly.py typos
These functions were passing the python object to the C API instead of the ctypes handle
Diffstat (limited to 'python')
| -rw-r--r-- | python/lineardisassembly.py | 16 |
1 files changed, 8 insertions, 8 deletions
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: |
