Update capa/features/extractors/binja/helpers.py

This commit is contained in:
Willi Ballenthin
2023-09-27 08:51:12 +02:00
committed by GitHub
parent 8a019aa360
commit d8eebf524e

View File

@@ -57,7 +57,7 @@ def read_c_string(bv: BinaryView, offset: int, max_len: int) -> str:
s = []
while len(s) < max_len:
try:
c = bv.read(offset + count, 1)[0]
c = bv.read(offset + len(s), 1)[0]
except Exception:
break