diff options
| author | Mason Reed <mason@vector35.com> | 2026-03-31 11:19:19 -0700 |
|---|---|---|
| committer | Mason Reed <mason@vector35.com> | 2026-03-31 11:19:24 -0700 |
| commit | 9601e9b1e5bfbccfdf79e157ec961affb4c9f2fa (patch) | |
| tree | aeb9b53566deccbc296248d1f238281720bb33ff /python | |
| parent | 213b1487db828d26aa2f60d9fb2d7f990d9fd43b (diff) | |
[Python] Fix BinaryView.get_modification failing when passing a length
Fixes https://github.com/Vector35/binaryninja-api/issues/8046
Diffstat (limited to 'python')
| -rw-r--r-- | python/binaryview.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/binaryview.py b/python/binaryview.py index add0d02a..0e050bba 100644 --- a/python/binaryview.py +++ b/python/binaryview.py @@ -5221,7 +5221,7 @@ class BinaryView: """ if length is None: return [ModificationStatus(core.BNGetModification(self.handle, addr))] - data = (ctypes.c_int * length)() + data = (ctypes.c_ubyte * length)() length = core.BNGetModificationArray(self.handle, addr, data, length) return [ModificationStatus(a) for a in data[:length]] |
