commit | ea2147cec89bf5f617cbc7e1c57e0e0aea3dc653 | [log] [tgz] |
---|---|---|
author | Jooyung Han <jooyung@google.com> | Wed Oct 21 18:16:56 2020 +0900 |
committer | Jooyung Han <jooyung@google.com> | Wed Oct 21 20:52:22 2020 +0900 |
tree | 7fb69b245733fdc0d1b00a118ec3877abd6e69da | |
parent | 8f02a53bba40de65fa97f618c7aba00473018bd1 [diff] |
fix: null-deref if parcelable contains untyped List untyped List/Map is supported now. Since untyped List can hold various types of objects including even SparseArray. So we need to recursively iterate each element to figure out if it (transitively) contains any file descriptor. describeContents() calls helper "describeContents(Object)" to reduce generated code size. We can't put this helper to Parcelable because generated code needs to support "sdk" variants as well which are built and run against older frameworks. Bug: 171321089 Test: aidl_unittests / aidl_integration_test Test: m Change-Id: Id7acd0536afb69d096e2ee9965210b4eb43401e2
Documentation for this project is currently maintained here:
https://source.android.com/devices/architecture/aidl/overview