Fix another off-by-one error in ZipFileRO
Bug: 10424836 Change-Id: I491458bd31ef39e87127d061427b32a3d59ac807
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user