summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorHeran Gao <heran@vector35.com>2020-08-03 18:03:11 -0400
committerJordan <jordan@psifertex.com>2020-08-16 21:43:43 -0400
commitff258fa32fc0911d2dc6b9c0853edb020cca7e60 (patch)
tree8078b87820bea7bb6b49d794b2594c92de3feb40 /python
parent55c2311a05cc24e66a8d22186716a95cf711eece (diff)
fix lack of judgement whether c is None in binaryview.get_ascii_string_at()
Diffstat (limited to 'python')
-rw-r--r--python/binaryview.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/binaryview.py b/python/binaryview.py
index 462eb815..1086035b 100644
--- a/python/binaryview.py
+++ b/python/binaryview.py
@@ -4235,7 +4235,7 @@ class BinaryView(object):
br.seek(addr)
length = 0
c = br.read8()
- while c > 0 and c <= 0x7f:
+ while c is not None and c > 0 and c <= 0x7f:
if length == max_length:
break
length += 1