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

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

Merge "libbinder: RPC - add DOS TODO" am: a416e7b1 am: f9df1ab9 am: 5cf70afc

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

Change-Id: Ie46b3dd0f002fb3e3bd7374c09205f86832bc9d2
parents 8155b0de 5cf70afc
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))) {