summaryrefslogtreecommitdiff
path: root/libs/ui/Gralloc2.cpp
diff options
context:
space:
mode:
author Brian Duddie <bduddie@google.com> 2018-02-15 15:02:29 -0800
committer Brian Duddie <bduddie@google.com> 2018-02-22 15:51:59 -0800
commit0eb4624b33aeb375ae431a6b1e2b787c959968fe (patch)
tree85398c12afb02a8a471970465a6152b69f7944f3 /libs/ui/Gralloc2.cpp
parent11e6a7f0e82148eb3de78df19dffccf3cda429da (diff)
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. Bug: 70986337 Test: run POC, confirm via logs that function bails early Change-Id: I674285738983f18de3466f9e818d83dabe269b7d
Diffstat (limited to 'libs/ui/Gralloc2.cpp')
0 files changed, 0 insertions, 0 deletions