mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-05 01:07:38 +02:00
Layers: Update LeechCore RawIO with better error handling for readlines
Fixes #1419
This commit is contained in:
@@ -129,6 +129,8 @@ if HAS_LEECHCORE:
|
||||
|
||||
def readline(self, __size: Optional[int] = ...) -> bytes:
|
||||
data = b""
|
||||
if not __size:
|
||||
__size = 0
|
||||
while __size > self._chunk_size or __size < 0:
|
||||
data += self.read(self._chunk_size)
|
||||
index = data.find(b"\n")
|
||||
|
||||
Reference in New Issue
Block a user