diff options
author | Nikita Ioffe <ioffe@google.com> | 2020-11-27 18:57:44 +0000 |
---|---|---|
committer | Nikita Ioffe <ioffe@google.com> | 2020-12-02 11:14:07 +0000 |
commit | 8d6ae2dd8aebfd98e5b0968062b2f0c92fa0b0da (patch) | |
tree | 0332457fab777ae0fd4a8cc8e0e2caeee3250c60 /libpackagelistparser/packagelistparser_test.cpp | |
parent | c57f61ab23f2c3a57ff31cc6b611bc5a6a8de641 (diff) |
Fix potential use-after-free bug in reboot
Instead of operating on raw pointers, init now uses name of the
services as it's primary identifier. Only place that still uses
vector<Service*> is StopServices.
In addition, ServiceList::services() function is removed, which should
help avoiding similar bugs in the future.
Bug: 170315126
Bug: 174335499
Test: adb reboot
Test: atest CtsInitTestCases
Change-Id: I73ecd7a8c58c2ec3732934c595b7f7db814b7034
Ignore-AOSP-First: fixing security vulnerability
Diffstat (limited to 'libpackagelistparser/packagelistparser_test.cpp')
0 files changed, 0 insertions, 0 deletions