Merge pull request #1559 from volatilityfoundation/issues/issue1419

Layers: Update LeechCore RawIO with better error handling for readlines
This commit is contained in:
ikelos
2025-01-25 12:44:08 +00:00
committed by GitHub
@@ -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")