summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/RegionSamplingThread.cpp
diff options
context:
space:
mode:
author Connor O'Brien <connoro@google.com> 2020-10-20 14:48:40 -0700
committer Connor O'Brien <connoro@google.com> 2020-10-20 15:22:18 -0700
commit597f6376a0517fb450711613a628f2ac5898a719 (patch)
tree149e26182a185c3ae06a05097b266325641d6a25 /services/surfaceflinger/RegionSamplingThread.cpp
parentfe3c19fcbda29a1cbea6d6db360770e67647a289 (diff)
libtimeinstate: check for invalid buckets when reading map
The indexing logic in getUidsUpdatedConcurrentTimes relies on the keys read from the BPF map being valid and assumes that the maximum bucket number is determined by the number of CPUs. Add a check to fail immediately if an invalid, higher bucket is encountered. Also add a new test in libtimeinstate_test to check this case. Test: added test case passes only if the check is present. Bug: 166696502 Signed-off-by: Connor O'Brien <connoro@google.com> Change-Id: I129a3b6491c869124dbbf5c694f82def9d5a8c98
Diffstat (limited to 'services/surfaceflinger/RegionSamplingThread.cpp')
0 files changed, 0 insertions, 0 deletions