summaryrefslogtreecommitdiff
path: root/libpackagelistparser/packagelistparser_test.cpp
diff options
context:
space:
mode:
authorNikita Ioffe <ioffe@google.com>2020-11-27 18:57:44 +0000
committerNikita Ioffe <ioffe@google.com>2020-12-02 16:11:22 +0000
commit7ba5030dcceba616927dc7deda3b46ee009de4e4 (patch)
treea765f825992598749155df6139957aa29d7f2876 /libpackagelistparser/packagelistparser_test.cpp
parentc8944127177359f516642b419e69b6c01a15fc7b (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 Merged-In: I73ecd7a8c58c2ec3732934c595b7f7db814b7034 Ignore-AOSP-First: fixing security vulnerability (cherry picked from commit 8d6ae2dd8aebfd98e5b0968062b2f0c92fa0b0da)
Diffstat (limited to 'libpackagelistparser/packagelistparser_test.cpp')
0 files changed, 0 insertions, 0 deletions