mirror of
https://github.com/mandiant/capa.git
synced 2025-12-12 15:49:46 -08:00
Update capa/features/extractors/binja/helpers.py
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user