Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions dissect/evidence/asdf/asdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

from dissect import cstruct
from dissect.util import ts
from dissect.util.stream import AlignedStream
from dissect.util.stream import AlignedStream, RangeStream

from dissect.evidence.asdf.streams import CompressedStream, Crc32Stream, HashedStream
from dissect.evidence.exceptions import (
Expand Down Expand Up @@ -311,8 +311,8 @@ def _write_block(self, source: BinaryIO, offset: int, size: int, idx: int = 0, b
block.write(self.fh)
data_offset = self.fh.tell() # Block data location

source.seek(offset)
shutil.copyfileobj(source, outfh, size)
source_stream = RangeStream(source, offset, size)
shutil.copyfileobj(source_stream, outfh)
# This writes any remaining data or footer for each block writer
outfh.finalize()

Expand Down