commit | b393a2d9a93e4af4191e8cbf80a4cc4e9c201940 | [log] [tgz] |
---|---|---|
author | Eino-Ville Talvala <etalvala@google.com> | Tue Apr 28 18:08:50 2020 -0700 |
committer | Eino-Ville Talvala <etalvala@google.com> | Wed Apr 29 11:29:04 2020 -0700 |
tree | 43bb6b4174ac76336a2d640cddf6c4a845570e1f | |
parent | 3742d5e5106982da1ae1ad4f38a28efb69e7fe0b [diff] |
Camera: Validate face count in received metadata Ensure the count can't cause an overflow in bytes to be read. Test: atest CtsCameraTestCases; also add bad face count data from camera service and manually verify the error logs appear when running android.hardware.cts.CameraTest#testFaceDetection. Bug: 150156131 Change-Id: Ic78ec0ccf67ef8665f80f69aabbb1ae71dd609cd