Merge "Check for invalid (negative) string pool pos." into sc-dev

This commit is contained in:
Alex Buynytskyy
2021-07-27 14:39:29 +00:00
committed by Android (Google) Code Review

View File

@@ -56,6 +56,9 @@ public class PackageParserCacheHelper {
mStrings.clear();
final int poolPosition = mParcel.readInt();
if (poolPosition < 0) {
throw new IllegalStateException("Invalid string pool position: " + poolPosition);
}
final int startPosition = mParcel.dataPosition();
// The pool is at the end of the parcel.