diff options
author | bunnei <bunneidev@gmail.com> | 2018-08-12 03:15:24 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-08-12 03:15:24 +0200 |
commit | ca4bf671ce49bbf69ecf55c32e2c8aaceb18e06f (patch) | |
tree | 7bd4fb11f034b86a7c2e833055e348419a92a809 | |
parent | Merge pull request #1010 from bunnei/unk-vert-attrib-shader (diff) | |
download | yuzu-ca4bf671ce49bbf69ecf55c32e2c8aaceb18e06f.tar yuzu-ca4bf671ce49bbf69ecf55c32e2c8aaceb18e06f.tar.gz yuzu-ca4bf671ce49bbf69ecf55c32e2c8aaceb18e06f.tar.bz2 yuzu-ca4bf671ce49bbf69ecf55c32e2c8aaceb18e06f.tar.lz yuzu-ca4bf671ce49bbf69ecf55c32e2c8aaceb18e06f.tar.xz yuzu-ca4bf671ce49bbf69ecf55c32e2c8aaceb18e06f.tar.zst yuzu-ca4bf671ce49bbf69ecf55c32e2c8aaceb18e06f.zip |
-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: { |