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)
committerJP Sugarbroad <jpsugar@google.com>
Thu, 15 Mar 2018 20:03:16 +0000 (13:03 -0700)
commit10159530900829f1a49e2909f9c2f803c410f613
treecd0186ee2997d329d15b8f827ae1e243a083405c
parentbe04daa2c6afbcd06dc51d15b9b4525c1c95c515
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