OSDN Git Service

Increment when attempting to read protected Parcel Data
authorMichael Wachenschwanz <mwachens@google.com>
Tue, 17 Apr 2018 23:52:40 +0000 (16:52 -0700)
committerandroid-build-team Robot <android-build-team-robot@google.com>
Fri, 3 Aug 2018 19:07:35 +0000 (19:07 +0000)
commitf52855df9b9a6f9eefc96851a52cd2f048bc5f7d
treee7ca1da7bc4cdb7a7533f5b4a8273e07714c00db
parent772b6841384302f494033d3f445bdf956868232e
Increment when attempting to read protected Parcel Data

Make sure to increment the parcel data position even when trying to
improperly read from protected data

Bug: 29833520

Test (M): cts-tradefed run cts -c android.os.cts.ParcelTest -m testBinderDataProtection
Test (M): cts-tradefed run cts -c android.os.cts.ParcelTest -m testBinderDataProtectionIncrements
Test: cts-tradefed run cts -m CtsOsTestCases -t android.os.cts.ParcelTest#testBinderDataProtection
Test: cts-tradefed run cts -m CtsOsTestCases -t android.os.cts.ParcelTest#testBinderDataProtectionIncrements

Change-Id: Ie4aae6277fc5f5c924f603d9828c3a608998b986
Merged-In: Ie4aae6277fc5f5c924f603d9828c3a608998b986
(cherry picked from commit 6a825e8ad1a3928dd872bb7c3fbcd94784d77267)
libs/binder/Parcel.cpp