summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorXusheng <xusheng@vector35.com>2020-09-06 10:25:27 +0800
committerXusheng <xusheng@vector35.com>2020-09-06 10:28:24 +0800
commit8107ec4778fc4bcb657974438a7c12131d62644a (patch)
treefad04136ec6a15c1fe4d1b3cd4f584d28e97b142 /python
parent01ca18b5aa4377a353df040f14f6c2a1490cb0cf (diff)
fix parse_types_from_string()
Diffstat (limited to 'python')
-rw-r--r--python/binaryview.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/python/binaryview.py b/python/binaryview.py
index 2c20a694..1cd57bf9 100644
--- a/python/binaryview.py
+++ b/python/binaryview.py
@@ -4655,7 +4655,9 @@ class BinaryView(object):
parse = core.BNTypeParserResult()
errors = ctypes.c_char_p()
- if not core.BNParseTypesString(self.handle, text, parse, errors):
+ type_list = core.BNQualifiedNameList()
+ type_list.count = 0
+ if not core.BNParseTypesString(self.handle, text, parse, errors, type_list):
error_str = errors.value.decode("utf-8")
core.BNFreeString(ctypes.cast(errors, ctypes.POINTER(ctypes.c_byte)))
raise SyntaxError(error_str)