platform_hardware_interfaces/health/aidl/default
Yifan Hong 70197263f0 health: Check return value of LinkedCallback::Make.
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
2023-07-06 17:46:25 -07:00
..
include/health-impl health: expose battery health data and update version to V2 2023-01-21 07:33:51 +00:00
Android.bp health: expose battery health data and update version to V2 2023-01-21 07:33:51 +00:00
android.hardware.health-service.example.rc health: vendor.charger-* -> vendor.charger. 2022-01-26 15:53:11 -08:00
android.hardware.health-service.example.xml health: expose battery health data and update version to V2 2023-01-21 07:33:51 +00:00
android.hardware.health-service.example_recovery.rc health: fix running HAL in recovery mode. 2021-11-19 02:18:21 +00:00
ChargerUtils.cpp health: handle charger in health HAL 2021-11-03 11:56:01 -07:00
fuzzer.cpp Add an AIDL fuzzer for health service 2022-05-10 12:23:11 -07:00
HalHealthLoop.cpp health: support Dock charging 2022-01-15 10:22:27 +00:00
health-convert.cpp health: support Dock charging 2022-01-15 10:22:27 +00:00
health-convert.h health: Add default impl of health AIDL HAL 2021-10-26 23:53:55 -07:00
Health.cpp health: Check return value of LinkedCallback::Make. 2023-07-06 17:46:25 -07:00
LinkedCallback.cpp health: Check return value of LinkedCallback::Make. 2023-07-06 17:46:25 -07:00
LinkedCallback.h health: Check return value of LinkedCallback::Make. 2023-07-06 17:46:25 -07:00
main.cpp health: fix running HAL in recovery mode. 2021-11-19 02:18:21 +00:00