diff options
author | bunnei <bunneidev@gmail.com> | 2018-08-12 04:42:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-12 04:42:45 +0200 |
commit | a921d22545e5ae30dc5c5fe2db2285b57da586e5 (patch) | |
tree | 63ddc210f605401aca27d4b2e42305f28b59d948 /src/core/hle/kernel/server_session.cpp | |
parent | Merge pull request #1020 from lioncash/namespace (diff) | |
parent | friend: Stub DeclareCloseOnlinePlaySession. (diff) | |
download | yuzu-a921d22545e5ae30dc5c5fe2db2285b57da586e5.tar yuzu-a921d22545e5ae30dc5c5fe2db2285b57da586e5.tar.gz yuzu-a921d22545e5ae30dc5c5fe2db2285b57da586e5.tar.bz2 yuzu-a921d22545e5ae30dc5c5fe2db2285b57da586e5.tar.lz yuzu-a921d22545e5ae30dc5c5fe2db2285b57da586e5.tar.xz yuzu-a921d22545e5ae30dc5c5fe2db2285b57da586e5.tar.zst yuzu-a921d22545e5ae30dc5c5fe2db2285b57da586e5.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/kernel/server_session.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/hle/kernel/server_session.cpp b/src/core/hle/kernel/server_session.cpp index 93560152f..d09ca5992 100644 --- a/src/core/hle/kernel/server_session.cpp +++ b/src/core/hle/kernel/server_session.cpp @@ -71,6 +71,14 @@ ResultCode ServerSession::HandleDomainSyncRequest(Kernel::HLERequestContext& con const u32 object_id{context.GetDomainMessageHeader()->object_id}; switch (domain_message_header->command) { case IPC::DomainMessageHeader::CommandType::SendMessage: + if (object_id > domain_request_handlers.size()) { + LOG_CRITICAL(IPC, + "object_id {} is too big! This probably means a recent service call " + "to {} needed to return a new interface!", + object_id, name); + UNREACHABLE(); + return RESULT_SUCCESS; // Ignore error if asserts are off + } return domain_request_handlers[object_id - 1]->HandleSyncRequest(context); case IPC::DomainMessageHeader::CommandType::CloseVirtualHandle: { |