Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 429a1d59 authored by Pawan Wagh's avatar Pawan Wagh
Browse files

Fix usage of ZipFileRO::getEntryInfo

Extra field size has been added to getEntryInfo. Adding parameter to call.

Test: mma libandroidfw
Bug: 334109171
Change-Id: I63232ab7c9c1db9c4dadc2c457c587900899e305
parent 8efc3c4b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -115,7 +115,8 @@ sumFiles(JNIEnv*, void* arg, ZipFileRO* zipFile, ZipEntryRO zipEntry, const char
    size_t* total = (size_t*) arg;
    uint32_t uncompLen;

    if (!zipFile->getEntryInfo(zipEntry, nullptr, &uncompLen, nullptr, nullptr, nullptr, nullptr)) {
    if (!zipFile->getEntryInfo(zipEntry, nullptr, &uncompLen, nullptr, nullptr, nullptr, nullptr,
                               nullptr)) {
        return INSTALL_FAILED_INVALID_APK;
    }