commit | 48708e4f13b98f8166e398cabf37c984e18212a0 | [log] [tgz] |
---|---|---|
author | Pawan Wagh <waghpawan@google.com> | Sat Jan 07 01:09:27 2023 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Sat Jan 07 01:09:27 2023 +0000 |
tree | b04d7cbea1ec5d632effe78be1f01dff9373c9e2 | |
parent | 8d4e33764ab9255f82dfd3018d5caf7fbea67ccf [diff] | |
parent | b2edbafb172bfc58fd833ceab01dfc42b6f2ef52 [diff] |
Merge "Use NdkParcelAdapter instead of AParcel_create" am: 05be7e7f24 am: b2edbafb17 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2375151 Change-Id: I04b74067209f692fec5885ab03f37c78cbacab33 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/libs/binder/tests/parcel_fuzzer/binder_ndk.cpp b/libs/binder/tests/parcel_fuzzer/binder_ndk.cpp index d32cd80..fa0cc81 100644 --- a/libs/binder/tests/parcel_fuzzer/binder_ndk.cpp +++ b/libs/binder/tests/parcel_fuzzer/binder_ndk.cpp
@@ -213,7 +213,8 @@ 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; },