diff options
| author | 2022-07-27 22:17:26 +0000 | |
|---|---|---|
| committer | 2022-07-27 23:21:29 +0000 | |
| commit | 68303214deeed1f44b4fe44625d55d34f280c005 (patch) | |
| tree | 7a2f219ed9f8e25ef36930450feaa3c3cd278c30 | |
| parent | 8f60fa314f940d54eae96788b7da9fb334d113d7 (diff) | |
Add incoming threads to binder_bpBinderFuzz
If the RpcSession associated with a binder has no incoming threads, then
calling linkToDeath on it is fatal.
Test: binder_bpBinderFuzz
clusterfuzz-testcase-minimized-binder_bpBinderFuzz-6220735032197120
Bug: 239917056
Change-Id: I471b72e55c240ac8344ebc8506c32e60c61d13bf
| -rw-r--r-- | libs/binder/tests/unit_fuzzers/BpBinderFuzz.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/binder/tests/unit_fuzzers/BpBinderFuzz.cpp b/libs/binder/tests/unit_fuzzers/BpBinderFuzz.cpp index e77c55c669..910c9dc25c 100644 --- a/libs/binder/tests/unit_fuzzers/BpBinderFuzz.cpp +++ b/libs/binder/tests/unit_fuzzers/BpBinderFuzz.cpp @@ -49,6 +49,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { }); sp<RpcSession> session = RpcSession::make(); + session->setMaxIncomingThreads(1); status_t status; for (size_t tries = 0; tries < 5; tries++) { usleep(10000); |