summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPawan Wagh <waghpawan@google.com>2023-01-07 00:16:26 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2023-01-07 00:16:26 +0000
commit05be7e7f24e77a660c9c251dc1ba33d1a988280f (patch)
tree90b42350fd43b13736f4c74653d5bbe6d3bffdcb
parentd3fa088f8eb325217c3b1adef8a253c34adc9c83 (diff)
parentdddac21641ae4faeb1783a30b373cb3090257265 (diff)
downloadnative-05be7e7f24e77a660c9c251dc1ba33d1a988280f.tar.gz
Merge "Use NdkParcelAdapter instead of AParcel_create"
-rw-r--r--libs/binder/tests/parcel_fuzzer/binder_ndk.cpp3
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;
},