summaryrefslogtreecommitdiff
path: root/python/binaryview.py
diff options
context:
space:
mode:
authornegasora <negasora@users.noreply.github.com>2018-06-28 15:25:55 -0400
committerGitHub <noreply@github.com>2018-06-28 15:25:55 -0400
commit4e94633e22288784180ba31c96b8e4a958d513a0 (patch)
tree4eb4ebbcbd758ad2e14174772d5e30e16f4fb1e5 /python/binaryview.py
parent8833eeb4c3b89f3ba6423b7f67a1a4277cabfc82 (diff)
parent706039f263d79bfb15001a83e3fd87ddfc023f4a (diff)
Merge pull request #1068 from negasora/get_strings_bug
fix #1057
Diffstat (limited to 'python/binaryview.py')
-rw-r--r--python/binaryview.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/binaryview.py b/python/binaryview.py
index b784106e..e0e2fbb3 100644
--- a/python/binaryview.py
+++ b/python/binaryview.py
@@ -2765,6 +2765,8 @@ class BinaryView(object):
if start is None:
strings = core.BNGetStrings(self.handle, count)
else:
+ if length is None:
+ length = self.end - start
strings = core.BNGetStringsInRange(self.handle, start, length, count)
result = []
for i in xrange(0, count.value):