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

Commit 0bed76ac authored by Akshata Kadam's avatar Akshata Kadam
Browse files

binder_rpc_fuzzer: improve speed by reducing the no of connections

To limit the creation of socket connections,reduce the value
of kMaxConnections to 10. This will reduce the time it takes
for a socket to connect and disconnect for a large number of times.

exec/s : 68
Test: ./binder_rpc_fuzzer
Bug: 247837809

Change-Id: I23ea3e80f2c63152c00b2e7ec83d8ccb067bcf0b
parent b32659ce
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -135,7 +135,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {

    // b/260736889 - limit arbitrarily, due to thread resource exhaustion, which currently
    // aborts. Servers should consider RpcServer::setConnectionFilter instead.
    constexpr size_t kMaxConnections = 1000;
    constexpr size_t kMaxConnections = 10;

    while (provider.remaining_bytes() > 0) {
        if (connections.empty() ||