summaryrefslogtreecommitdiff
path: root/tools/aapt2/ResourceTable.cpp
diff options
context:
space:
mode:
author Hao Ke <haok@google.com> 2021-10-25 20:07:32 +0000
committer Hao Ke <haok@google.com> 2021-10-29 14:44:32 +0000
commitec4b60c1ad5f6ba683f3e8e018f1f72ed3374310 (patch)
treed217e7440d002c37e06c59acc93e3019757d5e19 /tools/aapt2/ResourceTable.cpp
parentd6f306117ae252763093b5ecdf013e47364503a3 (diff)
Adding typed Parcel read APIs for Serializable.
Added typed read API of `readSerializable`, that takes an extra Class<T> parameter to check that the class written on the wire is the same or a descendant from the one provided as argument. Doing so could enhance the security of Parcel deserialization, as it would prevent unexpected types of objects being deserialized. More details can be found at go/safer-parcel. Test: atest -d android.os.cts.ParcelTest Bug: 195622897 Change-Id: I94e48ac7fe8f5d3ba4c54100cb76ce3e4aacdd09
Diffstat (limited to 'tools/aapt2/ResourceTable.cpp')
0 files changed, 0 insertions, 0 deletions