Verify number of Map entries written to Parcel
Make sure the number of entries written by Parcel#writeMapInternal
matches the size written. If a mismatch were allowed, an exploitable
scenario could occur where the data read from the Parcel would not
match the data written.
Test: cts-tradefed run cts -m CtsOsTestCases -t android.os.cts.ParcelTest
(cherry picked from commit 057a01d1f38e9b46d3faa4059fdd7c8717681ea0)
1 file changed