diff options
| author | Rusty Wagner <rusty.wagner@gmail.com> | 2019-05-10 19:17:01 -0400 |
|---|---|---|
| committer | Rusty Wagner <rusty.wagner@gmail.com> | 2019-05-10 19:17:10 -0400 |
| commit | 00018d6ae7a8c4180bdaddd0ca127cff13509aaa (patch) | |
| tree | 15d583deb8cb6314fc9ffa675231a18befa23675 /python/architecture.py | |
| parent | e5f190cddaaeac84f8a6ec733c2c11c17ec7f927 (diff) | |
Fix use after free on assemble on invalid instruction
Diffstat (limited to 'python/architecture.py')
| -rw-r--r-- | python/architecture.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/architecture.py b/python/architecture.py index 0177141f..c2f28a86 100644 --- a/python/architecture.py +++ b/python/architecture.py @@ -2412,7 +2412,7 @@ class CoreArchitecture(Architecture): if not core.BNAssemble(self.handle, code, addr, result.handle, errors): error_str = errors.value core.BNFreeString(ctypes.cast(errors, ctypes.POINTER(ctypes.c_byte))) - raise ValueError("Could not assemble: %s" % errors.value) + raise ValueError("Could not assemble: %s" % error_str) if isinstance(str(result), bytes): return str(result) else: |
