libziparchive: fix extraction of >2GiB images
Bug: 19888174 Change-Id: I33a577909ced522d46223e2182e0bb18c291af27 Signed-off-by: Greg Hackmann <ghackmann@google.com>
This commit is contained in:
parent
ca87790cdc
commit
503cd6d437
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue