Skip to content
This repository has been archived by the owner on Oct 18, 2020. It is now read-only.

Commit

Permalink
Fixed a small bug which would cause scanner to leak memory when overl…
Browse files Browse the repository at this point in the history
  • Loading branch information
scudette committed Jun 13, 2014
1 parent a6bc712 commit 150ef77
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rekall/scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,8 @@ def scan(self, offset=0, maxlen=None):

base_offset=chunk_offset - len(overlap))

overlap = buffer_as.data[-self.overlap:]
if self.overlap > 0:
overlap = buffer_as.data[-self.overlap:]

scan_offset = buffer_as.base_offset
while scan_offset < buffer_as.end():
Expand Down

0 comments on commit 150ef77

Please sign in to comment.