Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 68303214 authored by Devin Moore's avatar Devin Moore
Browse files

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
parent 8f60fa31
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);