70197263f0
If LinkedCallback::Make returns nullptr, do not put it in Health::callback_. Otherwise, OnHealthInfoChanged crashes later because the linked callback objects are not null checked before accessing. Test: android.hardware.health-service.aidl_fuzzer (with a special corpus) Fixes: 289599278 Change-Id: I8bad41dbcfbefeb54744059baffd4eef1ae7ec42 |
||
---|---|---|
.. | ||
include/health-impl | ||
Android.bp | ||
android.hardware.health-service.example.rc | ||
android.hardware.health-service.example.xml | ||
android.hardware.health-service.example_recovery.rc | ||
ChargerUtils.cpp | ||
fuzzer.cpp | ||
HalHealthLoop.cpp | ||
health-convert.cpp | ||
health-convert.h | ||
Health.cpp | ||
LinkedCallback.cpp | ||
LinkedCallback.h | ||
main.cpp |