diff options
author | Pawan Wagh <waghpawan@google.com> | 2023-01-07 00:16:26 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2023-01-07 00:16:26 +0000 |
commit | 05be7e7f24e77a660c9c251dc1ba33d1a988280f (patch) | |
tree | 90b42350fd43b13736f4c74653d5bbe6d3bffdcb | |
parent | d3fa088f8eb325217c3b1adef8a253c34adc9c83 (diff) | |
parent | dddac21641ae4faeb1783a30b373cb3090257265 (diff) | |
download | native-05be7e7f24e77a660c9c251dc1ba33d1a988280f.tar.gz |
Merge "Use NdkParcelAdapter instead of AParcel_create"
-rw-r--r-- | libs/binder/tests/parcel_fuzzer/binder_ndk.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/binder/tests/parcel_fuzzer/binder_ndk.cpp b/libs/binder/tests/parcel_fuzzer/binder_ndk.cpp index d32cd80fa0..fa0cc819fa 100644 --- a/libs/binder/tests/parcel_fuzzer/binder_ndk.cpp +++ b/libs/binder/tests/parcel_fuzzer/binder_ndk.cpp @@ -213,7 +213,8 @@ std::vector<ParcelRead<NdkParcelAdapter>> BINDER_NDK_PARCEL_READ_FUNCTIONS{ size_t len = provider.ConsumeIntegralInRange<size_t>(0, provider.remaining_bytes()); std::vector<uint8_t> parcelData = provider.ConsumeBytes<uint8_t>(len); const uint8_t* buffer = parcelData.data(); - binder_status_t status = AParcel_unmarshal(AParcel_create(), buffer, len); + NdkParcelAdapter adapter; + binder_status_t status = AParcel_unmarshal(adapter.aParcel(), buffer, len); FUZZ_LOG() << "status: " << status; }, |