diff options
| author | 2019-11-21 18:35:04 -0500 | |
|---|---|---|
| committer | 2019-12-03 10:00:52 -0500 | |
| commit | 3de9119cda955b03d5a48debf6f9d03e7264854e (patch) | |
| tree | 7e15bbd88e3db05da344c849f814e4576bcba9b0 /vulkan/libvulkan/api.cpp | |
| 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
Diffstat (limited to 'vulkan/libvulkan/api.cpp')
0 files changed, 0 insertions, 0 deletions