mirror of
https://github.com/borgbackup/borg.git
synced 2026-06-11 09:59:19 -04:00
Chunker: fix infinite loop
Could happen at EOF when remaining data is insufficient and no new data can be added.
This commit is contained in:
parent
5445a52994
commit
a235cff0c5
1 changed files with 1 additions and 1 deletions
|
|
@ -680,7 +680,7 @@ cdef class Chunker:
|
|||
self.remaining -= min_size
|
||||
sum = _buzhash(self.data + self.position, window_size, self.table)
|
||||
|
||||
while self.remaining > self.window_size and (sum & chunk_mask):
|
||||
while self.remaining > self.window_size and (sum & chunk_mask) and not (self.eof and self.remaining <= window_size):
|
||||
p = self.data + self.position
|
||||
stop_at = p + self.remaining - window_size
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue