Skip to content

Commit 6d91d33

Browse files
committed
docs: Fix comment about platform address size when reading string slice lengths
1 parent 4813149 commit 6d91d33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

binja_plugin/actions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def run(self):
136136

137137
candidate_string_slice_len = self.bv.read_int(
138138
address=candidate_string_slice_len_addr,
139-
size=self.bv.arch.address_size, # TODO: is there a better way to get the maximum int size per platform?
139+
size=self.bv.arch.address_size, # In Rust's definition of the `str` type, this length is a `usize`, which is defined to be the same size as the size of pointers for the platform.
140140
sign=False,
141141
endian=self.bv.arch.endianness,
142142
)

0 commit comments

Comments
 (0)