diff options
| author | 2021-06-15 18:16:10 +0000 | |
|---|---|---|
| committer | 2021-06-15 18:16:10 +0000 | |
| commit | 24cbdc49e81216f56e2d3f43d697aeb949457c19 (patch) | |
| tree | e29fea168c961f83f8adb2de41b9efff0fd396a4 /libs | |
| parent | 0bd11b00fe433796d3d17d6d2510ac6ca6812a1c (diff) | |
| parent | c6f1ee8027ebfe45e3e278ec5590e68a7541cd75 (diff) | |
Merge "binder_parcel_fuzzer: remove embedded handle" am: 547b752ad2 am: c6f1ee8027
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1735008
Change-Id: I7d361b79606be34ea1cceb105cf8755a532aa03d
Diffstat (limited to 'libs')
| -rw-r--r-- | libs/binder/tests/parcel_fuzzer/hwbinder.cpp | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/libs/binder/tests/parcel_fuzzer/hwbinder.cpp b/libs/binder/tests/parcel_fuzzer/hwbinder.cpp index 0fec393e55..35b5ebca6f 100644 --- a/libs/binder/tests/parcel_fuzzer/hwbinder.cpp +++ b/libs/binder/tests/parcel_fuzzer/hwbinder.cpp @@ -148,28 +148,6 @@ std::vector<ParcelRead<::android::hardware::Parcel>> HWBINDER_PARCEL_READ_FUNCTI // should be null since we don't create any IPC objects CHECK(data == nullptr) << data; }, - [] (const ::android::hardware::Parcel& p, uint8_t size) { - FUZZ_LOG() << "about to readEmbeddedNativeHandle"; - size_t parent_buffer_handle = size & 0xf; - size_t parent_offset = size >> 4; - const native_handle_t* handle = nullptr; - status_t status = p.readEmbeddedNativeHandle(parent_buffer_handle, parent_offset, &handle); - FUZZ_LOG() << "readEmbeddedNativeHandle status: " << status << " handle: " << handle << " handle: " << handle; - - // should be null since we don't create any IPC objects - CHECK(handle == nullptr) << handle; - }, - [] (const ::android::hardware::Parcel& p, uint8_t size) { - FUZZ_LOG() << "about to readNullableEmbeddedNativeHandle"; - size_t parent_buffer_handle = size & 0xf; - size_t parent_offset = size >> 4; - const native_handle_t* handle = nullptr; - status_t status = p.readNullableEmbeddedNativeHandle(parent_buffer_handle, parent_offset, &handle); - FUZZ_LOG() << "readNullableEmbeddedNativeHandle status: " << status << " handle: " << handle << " handle: " << handle; - - // should be null since we don't create any IPC objects - CHECK(handle == nullptr) << handle; - }, [] (const ::android::hardware::Parcel& p, uint8_t /*data*/) { FUZZ_LOG() << "about to readNativeHandleNoDup"; const native_handle_t* handle = nullptr; @@ -180,14 +158,5 @@ std::vector<ParcelRead<::android::hardware::Parcel>> HWBINDER_PARCEL_READ_FUNCTI CHECK(handle == nullptr) << handle; CHECK(status != ::android::OK); }, - [] (const ::android::hardware::Parcel& p, uint8_t /*data*/) { - FUZZ_LOG() << "about to readNullableNativeHandleNoDup"; - const native_handle_t* handle = nullptr; - status_t status = p.readNullableNativeHandleNoDup(&handle); - FUZZ_LOG() << "readNullableNativeHandleNoDup status: " << status << " handle: " << handle; - - // should be null since we don't create any IPC objects - CHECK(handle == nullptr) << handle; - }, }; // clang-format on |