summaryrefslogtreecommitdiff
path: root/core/java/android/util/SparseArrayMap.java
diff options
context:
space:
mode:
authorBernardo Rufino <brufino@google.com>2021-12-21 17:13:03 +0000
committerBernardo Rufino <brufino@google.com>2022-01-06 18:35:31 +0000
commit74ee11c3f4c19e92173b39cb8dc5a38ce7a7abe9 (patch)
tree2ee844cb421262942eee101be9b95082754b81f6 /core/java/android/util/SparseArrayMap.java
parent2e72a8287277e1c1ed49ee64f2e0d32237668b6b (diff)
Migrate unsafer parcel APIs [2]
Manually migrate the few cases of: * readArray() * readParcelableArray() To the new parcel APIs that take the expected type as the last parameter. This enhances security because it prevents unexpected types *before* running unparcelling code. More details at go/safer-parcel. Owners, please check that the type of the objects expected is always a subtype of the type provided as the 3rd parameter. This is usually easy to verify due to casts that happen shortly after. These changes often allowed further transformations but I decided to avoid them to keep this change small and targeted. This was manual since it's tricky to get lint to infer the type in those cases and it was only a few. Bug: 195622897 Test: TH passes Change-Id: I262ed7cd6d3bc15b32e9296e88a8a67fdb59e880
Diffstat (limited to 'core/java/android/util/SparseArrayMap.java')
0 files changed, 0 insertions, 0 deletions