commit | 455e27d565f074df432c3819881e8c9e976c0981 | [log] [tgz] |
---|---|---|
author | Martijn Coenen <maco@google.com> | Tue Apr 18 15:53:51 2017 -0700 |
committer | Martijn Coenen <maco@google.com> | Wed Apr 19 16:02:44 2017 -0700 |
tree | a3d5dd5204ae7db1abb649d7bff9c1e3336adcb5 | |
parent | d333b7c26f44c7c84a634f7674fd1b4cdc6a867f [diff] |
Validate incoming data from the kernel. Make sure that every buffer we read from the kernel has the size we expect, that its parent buffer (if any) and the offset within that buffer is what we expect. Also added code for verifying native_handle_t properly. Note that this changes the wire format for sending native handles across. Bug: 30498700 Test: hidl_test, hidl_test_java, Youtube, Maps, Netflix, Camera Change-Id: I14cc0b3c43d774d29da61b8f037bc1c25ea58c17