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

Commit 59bad728 authored by Alex Buynytskyy's avatar Alex Buynytskyy Committed by Android (Google) Code Review
Browse files

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

parents 4afa9546 b2a831ac
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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.