platform_hardware_interfaces/biometrics/fingerprint/2.1
Nick Desaulniers e637aa32b8 biometrics: fingerprint: add locking to default impl
There exists the following race condition:
a). thread A receives setNotify and sets the callback to some object
b). thread B of the wrapped implementation calls
BiometricsFingerprint::notify which it was given a handle to. Thread B
executes past the nullptr check:
c). thread A receives setNotify and sets the callback to some other
object (or nullptr)
d). thread B resumes in notify with unknown state

Add mutex to protect access to mClientCallback.

Change-Id: I9163204ff5802e9246056caeb2a7857e6138531c
Fixes: 64802340
Test: VtsHalBiometricsFingerprintV2_1IfaceFuzzer
2017-08-18 17:14:53 +00:00
..
default biometrics: fingerprint: add locking to default impl 2017-08-18 17:14:53 +00:00
vts/functional VTS tests now static link to HAL def libs. #2 2017-08-10 17:44:57 +00:00
Android.bp Update make file for vndk enabled. 2017-08-04 14:12:23 +09:00
Android.mk Changed the naming scheme for Treble java libraries (both static and dynamic) 2017-04-13 15:23:46 -07:00
IBiometricsFingerprint.hal Convert all comments into "doxygen-ready" comments. 2017-03-29 08:53:58 -07:00
IBiometricsFingerprintClientCallback.hal clean up default fingerprint HIDL@2.1 implementation 2017-01-25 15:09:37 -08:00
types.hal Convert all comments into "doxygen-ready" comments. 2017-03-29 08:53:58 -07:00