Loading libs/binder/tests/parcel_fuzzer/binder_ndk.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -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; }, Loading Loading
libs/binder/tests/parcel_fuzzer/binder_ndk.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -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; }, Loading