commit | f9df1ab9f27d3206361943899a41531d4b5b8b2f | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Tue May 11 16:51:38 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue May 11 16:51:38 2021 +0000 |
tree | 37238286eb20409f9d537aac666025a1b121b75c | |
parent | fc87fc210a1cc37d77cce8ec8f4284ddb017b0b8 [diff] | |
parent | a416e7b190b0275234221e8074ca30c914ce0533 [diff] |
Merge "libbinder: RPC - add DOS TODO" am: a416e7b190 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1702013 Change-Id: I80277ca460985002b0edf91a2284d0b31f581206
diff --git a/libs/binder/RpcServer.cpp b/libs/binder/RpcServer.cpp index a6850ff..51c770e 100644 --- a/libs/binder/RpcServer.cpp +++ b/libs/binder/RpcServer.cpp
@@ -134,7 +134,8 @@ } 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))) {