Skip to content

Commit 9601e9b

Browse files
committed
[Python] Fix BinaryView.get_modification failing when passing a length
Fixes #8046
1 parent 213b148 commit 9601e9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/binaryview.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5221,7 +5221,7 @@ def get_modification(self, addr: int, length: Optional[int] = None) -> List[Modi
52215221
"""
52225222
if length is None:
52235223
return [ModificationStatus(core.BNGetModification(self.handle, addr))]
5224-
data = (ctypes.c_int * length)()
5224+
data = (ctypes.c_ubyte * length)()
52255225
length = core.BNGetModificationArray(self.handle, addr, data, length)
52265226
return [ModificationStatus(a) for a in data[:length]]
52275227

0 commit comments

Comments
 (0)