commit | 3de9119cda955b03d5a48debf6f9d03e7264854e | [log] [tgz] |
---|---|---|
author | Anthony Stange <stange@google.com> | Thu Nov 21 18:35:04 2019 -0500 |
committer | Anthony Stange <stange@google.com> | Tue Dec 03 10:00:52 2019 -0500 |
tree | 7e15bbd88e3db05da344c849f814e4576bcba9b0 | |
parent | cca0f3c899d3e8a762180e01e116c7243c94feb9 [diff] |
Stop illegal FD from causing SensorService crash If an illegal FD is passed into the SensorService code that sets up direct connections, it doesn't do any verification before using some ashmem helpers which will crash the service if an illegal fd is passed in. Verify any FD is valid before this step to avoid the crash. Bug: 143896234 Test: Ran newly added code to sensorservicetest and verified system server crash doesn't occur Change-Id: If44481de8c7fce5e01c8e1c9d90f01241d1f1cc5