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

Commit f9df1ab9 authored by Steven Moreland's avatar Steven Moreland Committed by Automerger Merge Worker
Browse files

Merge "libbinder: RPC - add DOS TODO" am: a416e7b1

Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1702013

Change-Id: I80277ca460985002b0edf91a2284d0b31f581206
parents fc87fc21 a416e7b1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -134,7 +134,8 @@ void RpcServer::join() {
        }
        LOG_RPC_DETAIL("accept4 on fd %d yields fd %d", mServer.get(), clientFd.get());

        // TODO(b/183988761): cannot trust this simple ID
        // TODO(b/183988761): cannot trust this simple ID, should not block this
        // thread
        LOG_ALWAYS_FATAL_IF(!mAgreedExperimental, "no!");
        int32_t id;
        if (sizeof(id) != read(clientFd.get(), &id, sizeof(id))) {