From f90bdf76b88a6218847b04d1813774f79251f41c Mon Sep 17 00:00:00 2001 From: Chris Hennick <4961925+Pr0methean@users.noreply.github.com> Date: Fri, 24 May 2024 13:03:45 -0700 Subject: [PATCH] Fix an off-by-one error in large-file detection Signed-off-by: Chris Hennick <4961925+Pr0methean@users.noreply.github.com> --- src/types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types.rs b/src/types.rs index bcd535e4..0d078296 100644 --- a/src/types.rs +++ b/src/types.rs @@ -789,7 +789,7 @@ impl ZipFileData { pub(crate) fn zip64_extra_field_block(&self) -> Option { let uncompressed_size: Option = - 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) } else { None