Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #40 from juikim/master

Do not overwrite file size if the local file header has valid file size.
  • Loading branch information...
commit 487bc0a03d2efd39cc57e33a6dcfe9545e9452a3 2 parents 7aef1f4 + e234932
@kientzle kientzle authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 libarchive/archive_read_support_format_zip.c
View
6 libarchive/archive_read_support_format_zip.c
@@ -1619,10 +1619,12 @@ process_extra(const char *p, size_t extra_length, struct zip_entry* zip_entry)
switch (headerid) {
case 0x0001:
/* Zip64 extended information extra field. */
- if (datasize >= 8)
+ if (datasize >= 8 &&
+ zip_entry->uncompressed_size == 0xffffffff)
zip_entry->uncompressed_size =
archive_le64dec(p + offset);
- if (datasize >= 16)
+ if (datasize >= 16 &&
+ zip_entry->compressed_size == 0xffffffff)
zip_entry->compressed_size =
archive_le64dec(p + offset + 8);
break;
Please sign in to comment.
Something went wrong with that request. Please try again.