Fix an off-by-one error in large-file detection

Signed-off-by: Chris Hennick <4961925+Pr0methean@users.noreply.github.com>
This commit is contained in:
Chris Hennick 2024-05-24 12:59:13 -07:00 committed by GitHub
parent 18760e9f9d
commit 2a39a8e0a7
Signed by: DevComp
GPG key ID: B5690EEEBB952194

View file

@ -800,7 +800,7 @@ impl ZipFileData {
} else {
None
};
let header_start: Option<u64> = if self.header_start > spec::ZIP64_BYTES_THR {
let header_start: Option<u64> = if self.header_start >= spec::ZIP64_BYTES_THR {
Some(spec::ZIP64_BYTES_THR)
} else {
None