diff options
| author | Xusheng <xusheng@vector35.com> | 2023-04-10 16:30:34 +0800 |
|---|---|---|
| committer | Xusheng <xusheng@vector35.com> | 2023-04-10 16:30:34 +0800 |
| commit | 1f24ad499e965b9ea8a4175f67c60a37268dafc9 (patch) | |
| tree | 924f18dcd870de2e73d4c81cda79b5c5ac16dc8b /python/binaryview.py | |
| parent | f8b8e2a96ef88a13724c3f4150e49bcf3add560d (diff) | |
Do not complain about partial string unless a partial string is requested. Fix https://github.com/Vector35/binaryninja-api/issues/4205
Diffstat (limited to 'python/binaryview.py')
| -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 3d2acbdb..950b9935 100644 --- a/python/binaryview.py +++ b/python/binaryview.py @@ -6247,7 +6247,7 @@ class BinaryView: str_ref = core.BNStringReference() if not core.BNGetStringAtAddress(self.handle, addr, str_ref): return None - if str_ref.type != StringType.AsciiString: + if partial and (addr != str_ref.start) and (str_ref.type != StringType.AsciiString): partial = False log_warn("Partial string not supported at {}".format(hex(addr))) start = addr if partial else str_ref.start |
