OSDN Git Service

Verify last array's length in readFromParcel
authorFyodor Kupolov <fkupolov@google.com>
Wed, 21 Feb 2018 01:02:35 +0000 (17:02 -0800)
committerandroid-build-team Robot <android-build-team-robot@google.com>
Fri, 13 Apr 2018 22:46:15 +0000 (22:46 +0000)
commitf4064921b285a705f4342008b0f7cb15829ea940
treeb3e71a9c2675315fcc5c0a93ec5d3508094b35ed
parent65ff5247cb85e2bd1fb7f65228542fe8266f6d9e
Verify last array's length in readFromParcel

Length of the last array in readFromParcel should be the same as
value of mNextIndex.

Test: PoC app in the bug
Bug: 73252178
Change-Id: I69f935949e945c3a036b19b4f88684d906079ea5
(cherry picked from commit 3b8bc2e45048527d7682b24b96957c34433da382)
core/java/com/android/internal/app/procstats/SparseMappingTable.java