summaryrefslogtreecommitdiff
path: root/python/demangle.py
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2024-04-29 20:30:29 -0400
committerMason Reed <mason@vector35.com>2024-05-03 11:25:32 -0400
commit5b8a02a5f37296799c7e46445bd1cc5be2f82c49 (patch)
tree2157e3e92d3c97af509e8dd0bbb69efe093f8f61 /python/demangle.py
parent0be4dd25ffd6b0308053d9b5c34987d1452b01a7 (diff)
Fix options BinaryView case on python demangler being passed incorrectly
Diffstat (limited to 'python/demangle.py')
-rw-r--r--python/demangle.py6
1 files changed, 3 insertions, 3 deletions
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(