chore: Fix: may need the absolute start as tiebreaker to ensure deterministic behavior
This commit is contained in:
parent
894e0ad44c
commit
73396be9f9
1 changed files with 1 additions and 1 deletions
|
@ -727,7 +727,7 @@ impl<R: Read + Seek> ZipArchive<R> {
|
|||
}
|
||||
let shared = ok_results
|
||||
.into_iter()
|
||||
.max_by_key(|shared| shared.dir_start - shared.offset)
|
||||
.max_by_key(|shared| (shared.dir_start - shared.offset, shared.dir_start))
|
||||
.unwrap();
|
||||
reader.seek(io::SeekFrom::Start(shared.dir_start))?;
|
||||
Ok(shared)
|
||||
|
|
Loading…
Add table
Reference in a new issue