This commit is contained in:
Chris Hennick 2023-05-11 09:39:18 -07:00
parent 2ad4c20681
commit ad26a3f7f9
No known key found for this signature in database
GPG key ID: 25653935CC8B6C74

View file

@ -192,8 +192,11 @@ impl Zip64CentralDirectoryEnd {
archive_offset, archive_offset,
)); ));
} }
if pos > 0 {
pos -= 1; pos -= 1;
} else {
break;
}
} }
Err(ZipError::InvalidArchive( Err(ZipError::InvalidArchive(