From ff258fa32fc0911d2dc6b9c0853edb020cca7e60 Mon Sep 17 00:00:00 2001 From: Heran Gao Date: Mon, 3 Aug 2020 18:03:11 -0400 Subject: fix lack of judgement whether c is None in binaryview.get_ascii_string_at() --- python/binaryview.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python') 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 -- cgit v1.3.1