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

Commit 931f6f87 authored by Kenny Root's avatar Kenny Root Committed by Android (Google) Code Review
Browse files

Merge "Fix another off-by-one error in ZipFileRO" into klp-dev

parents e550446d 1c7cf90a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -645,7 +645,7 @@ bool ZipFileRO::getEntryInfo(ZipEntryRO entry, int* pMethod, size_t* pUncompLen,

        if (method == kCompressStored &&
            ((dataOffset >= cdOffset) ||
             (uncompLen >= (cdOffset - dataOffset))))
             (uncompLen > (cdOffset - dataOffset))))
        {
            ALOGE("ERROR: bad uncompressed length in zip (%ld + " ZD " > %ld)\n",
                (long) dataOffset, (ZD_TYPE) uncompLen, (long) cdOffset);