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>
Thu, 22 Mar 2018 20:42:08 +0000 (20:42 +0000)
commit7dd7459944f35d38ef32a59582b06764f5dcc44d
tree079e4161f4e4db9102ee9d034bf000c9b41a08ed
parentee65a393854cdfcfec54333c6a06bc6c3429b3fc
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