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

Commit bb0bd225 authored by Alex Buynytskyy's avatar Alex Buynytskyy Committed by Automerger Merge Worker
Browse files

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

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15390628

Change-Id: Ia439ce6332894c0e8a304256f25fce6a4b741ab7
parents 33d2c87b 59bad728
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.