From 503cd6d4375d4f47c2cd5a83d3c8a651aeed521c Mon Sep 17 00:00:00 2001 From: Greg Hackmann Date: Mon, 23 Mar 2015 14:26:00 -0700 Subject: [PATCH] libziparchive: fix extraction of >2GiB images Bug: 19888174 Change-Id: I33a577909ced522d46223e2182e0bb18c291af27 Signed-off-by: Greg Hackmann --- libziparchive/zip_archive.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, int32_t ExtractEntryToFile(ZipArchiveHandle handle, ZipEntry* entry, int fd) { - const int32_t declared_length = entry->uncompressed_length; + const uint32_t declared_length = entry->uncompressed_length; const off64_t current_offset = lseek64(fd, 0, SEEK_CUR); if (current_offset == -1) {