diff options
| author | Heran Gao <heran@vector35.com> | 2020-08-03 18:03:11 -0400 |
|---|---|---|
| committer | Jordan <jordan@psifertex.com> | 2020-08-16 21:43:43 -0400 |
| commit | ff258fa32fc0911d2dc6b9c0853edb020cca7e60 (patch) | |
| tree | 8078b87820bea7bb6b49d794b2594c92de3feb40 | |
| parent | 55c2311a05cc24e66a8d22186716a95cf711eece (diff) | |
fix lack of judgement whether c is None in binaryview.get_ascii_string_at()
| -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 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 |
