diff options
| author | 2024-04-30 15:43:01 -0700 | |
|---|---|---|
| committer | 2024-04-30 15:43:01 -0700 | |
| commit | d171517afc217a667972ae5110c97fe030450310 (patch) | |
| tree | c67278ffb5767de3710e998eee37f32e8e76e28c /libs/input/SpriteController.cpp | |
| parent | 5be651f1190fa9728cbe4915fff336c97025245d (diff) | |
Improve stability of battery stats history unparceling
If the battery history file is corrupted, the unparceling
code may call `parcel.setDataPosition` with an invalid
argument. This leads to an irrecoverable native crash
and process kill. To avoid such a situation, we will be
checking the argument for validity before calling setDataPosition
Bug: 337977337
Test: atest FrameworksCoreTests:PowerStatsTest
Change-Id: Id4f1d7c27973eb975c0e7f87dc79491dc1b73101
Diffstat (limited to 'libs/input/SpriteController.cpp')
0 files changed, 0 insertions, 0 deletions