Add bounds check to sensors direct channel creation
Avoids attempting to read a 0-size array during input validation. Adds
SafetyNet logging when this is triggered.
Also, change the cast for the ashmem size check from int to int64_t to
avoid potential conversion to negative number on 32-bit systems.
Test: run POC, confirm via logs that function bails early
(cherry picked from commit 0eb4624b33aeb375ae431a6b1e2b787c959968fe)
1 file changed