summaryrefslogtreecommitdiff
path: root/opengl/libagl/array.cpp
diff options
context:
space:
mode:
author Brian Duddie <bduddie@google.com> 2019-05-29 13:19:13 -0700
committer Brian Duddie <bduddie@google.com> 2019-05-30 14:51:30 -0700
commit8e6f31c1a712dac6303052f1ead05a38ac1666c2 (patch)
treeade20cc0d98a1605af6160c16c54356b6b073fa8 /opengl/libagl/array.cpp
parent1db00e0af02d17b4894d6591adcc20477d8f689c (diff)
Avoid accessing failed HIDL Return contents
It's invalid to attempt to read the contents of a HIDL Return object that has isOk() return false. This leads to a crash, so instead map isOk() == false to DEAD_OBJECT in places where the return status is used, and avoid otherwise avoid referencing the contents of the Return. To facilitate testing, also add some additional informational logs for cases when the sensor handles have changed after HAL restart. Bug: 133497927 Test: use customized 2.0 HAL that crashes in activate call, confirm the HAL crash doesn't trigger system server crash due to invalid use of Return object Change-Id: Ic094999ef20d90b538f757e34167155e83711b3d
Diffstat (limited to 'opengl/libagl/array.cpp')
0 files changed, 0 insertions, 0 deletions