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:
parent
1bb0b14456
commit
f90bdf76b8
1 changed files with 1 additions and 1 deletions
|
@ -789,7 +789,7 @@ impl ZipFileData {
|
||||||
|
|
||||||
pub(crate) fn zip64_extra_field_block(&self) -> Option<Zip64ExtraFieldBlock> {
|
pub(crate) fn zip64_extra_field_block(&self) -> Option<Zip64ExtraFieldBlock> {
|
||||||
let uncompressed_size: Option<u64> =
|
let uncompressed_size: Option<u64> =
|
||||||
if self.uncompressed_size > spec::ZIP64_BYTES_THR || self.large_file {
|
if self.uncompressed_size >= spec::ZIP64_BYTES_THR || self.large_file {
|
||||||
Some(spec::ZIP64_BYTES_THR)
|
Some(spec::ZIP64_BYTES_THR)
|
||||||
} else {
|
} else {
|
||||||
None
|
None
|
||||||
|
|
Loading…
Add table
Reference in a new issue