Skip to content

Commit 2fe8ee5

Browse files
committed
Layers: Update LeechCore RawIO with better error handling for readlines
Fixes #1419
1 parent 0cd1520 commit 2fe8ee5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

volatility3/framework/layers/leechcore.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ def read(self, size: int = -1) -> bytes:
129129

130130
def readline(self, __size: Optional[int] = ...) -> bytes:
131131
data = b""
132+
if not __size:
133+
__size = 0
132134
while __size > self._chunk_size or __size < 0:
133135
data += self.read(self._chunk_size)
134136
index = data.find(b"\n")

0 commit comments

Comments
 (0)