From 5b8a02a5f37296799c7e46445bd1cc5be2f82c49 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Mon, 29 Apr 2024 20:30:29 -0400 Subject: Fix options BinaryView case on python demangler being passed incorrectly --- python/demangle.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'python') diff --git a/python/demangle.py b/python/demangle.py index 158880f0..1c591663 100644 --- a/python/demangle.py +++ b/python/demangle.py @@ -61,7 +61,7 @@ def demangle_llvm(mangled_name: str, options=None): names = [] if ( isinstance(options, binaryview.BinaryView) and core.BNDemangleLLVMWithOptions( - mangled_name, ctypes.byref(outName), ctypes.byref(outSize), options + mangled_name, ctypes.byref(outName), ctypes.byref(outSize), options.handle ) ) or ( isinstance(options, bool) and core.BNDemangleLLVM( @@ -108,7 +108,7 @@ def demangle_ms(archOrPlatform:Union[Architecture, Platform], mangled_name:str, if ( isinstance(options, binaryview.BinaryView) and demangleWithOptions( - archOrPlatform.handle, mangled_name, ctypes.byref(handle), ctypes.byref(outName), ctypes.byref(outSize), options + archOrPlatform.handle, mangled_name, ctypes.byref(handle), ctypes.byref(outName), ctypes.byref(outSize), options.handle ) ) or ( isinstance(options, bool) and demangle( @@ -145,7 +145,7 @@ def demangle_gnu3(arch, mangled_name, options=None): names = [] if ( isinstance(options, binaryview.BinaryView) and core.BNDemangleGNU3WithOptions( - arch.handle, mangled_name, ctypes.byref(handle), ctypes.byref(outName), ctypes.byref(outSize), options + arch.handle, mangled_name, ctypes.byref(handle), ctypes.byref(outName), ctypes.byref(outSize), options.handle ) ) or ( isinstance(options, bool) and core.BNDemangleGNU3( -- cgit v1.3.1