summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Hackmann2015-03-23 16:26:00 -0500
committerGreg Hackmann2015-03-23 16:30:40 -0500
commit503cd6d4375d4f47c2cd5a83d3c8a651aeed521c (patch)
treedf38faa742757035d69fe1819d7979736435148a
parentca87790cdccdb0ee17fb4069e6d4ed1e7b4e2ee0 (diff)
downloadplatform-system-core-503cd6d4375d4f47c2cd5a83d3c8a651aeed521c.tar.gz
platform-system-core-503cd6d4375d4f47c2cd5a83d3c8a651aeed521c.tar.xz
platform-system-core-503cd6d4375d4f47c2cd5a83d3c8a651aeed521c.zip
libziparchive: fix extraction of >2GiB images
Bug: 19888174 Change-Id: I33a577909ced522d46223e2182e0bb18c291af27 Signed-off-by: Greg Hackmann <ghackmann@google.com>
-rw-r--r--libziparchive/zip_archive.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libziparchive/zip_archive.cc b/libziparchive/zip_archive.cc
index 6475649d5..58285f130 100644
--- a/libziparchive/zip_archive.cc
+++ b/libziparchive/zip_archive.cc
@@ -1123,7 +1123,7 @@ int32_t ExtractToMemory(ZipArchiveHandle handle,
1123 1123
1124int32_t ExtractEntryToFile(ZipArchiveHandle handle, 1124int32_t ExtractEntryToFile(ZipArchiveHandle handle,
1125 ZipEntry* entry, int fd) { 1125 ZipEntry* entry, int fd) {
1126 const int32_t declared_length = entry->uncompressed_length; 1126 const uint32_t declared_length = entry->uncompressed_length;
1127 1127
1128 const off64_t current_offset = lseek64(fd, 0, SEEK_CUR); 1128 const off64_t current_offset = lseek64(fd, 0, SEEK_CUR);
1129 if (current_offset == -1) { 1129 if (current_offset == -1) {