OSDN Git Service

Validate incoming data properly.
authorMartijn Coenen <maco@google.com>
Tue, 18 Apr 2017 22:54:43 +0000 (15:54 -0700)
committerMartijn Coenen <maco@google.com>
Thu, 27 Apr 2017 23:24:26 +0000 (16:24 -0700)
commit7c00639a6802a9235ca9f2ad21577515215a4ee6
tree9622ae1e419b84903a2f07f3d49229bfa639282d
parent5bd39aaf42a7d70438cb7c2de5293192e945145e
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
core/java/android/os/HwParcel.java
core/jni/android_os_HwParcel.cpp