commit | 7c00639a6802a9235ca9f2ad21577515215a4ee6 | [log] [tgz] |
---|---|---|
author | Martijn Coenen <maco@google.com> | Tue Apr 18 15:54:43 2017 -0700 |
committer | Martijn Coenen <maco@google.com> | Thu Apr 27 16:24:26 2017 -0700 |
tree | 9622ae1e419b84903a2f07f3d49229bfa639282d | |
parent | 5bd39aaf42a7d70438cb7c2de5293192e945145e [diff] |
Validate incoming data properly. Make sure calls to readBuffer() and readEmbeddedBuffer() get the correct size, parent and offset passed in, so these can be validated by libhwbinder. Modified HwBlob to take a length argument as well, so it can be validated. Bug: 30498700 Test: hidl_test, hidl_test_java, Youtube, Maps, Netflix, Camera Change-Id: I28712db97ae29b46acfe952d3d92d1ce5f666a4d Merged-In: I28712db97ae29b46acfe952d3d92d1ce5f666a4d