diff options
author | bunnei <bunneidev@gmail.com> | 2021-05-19 04:52:52 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2021-05-21 06:41:52 +0200 |
commit | f4fe71c1c9e5f0c2eaa159f676efea3ae1953a22 (patch) | |
tree | c4c9818c0e443e514c774f35e8e3dff3ebb23e4c /src/core/hle/ipc_helpers.h | |
parent | common: tree: Avoid a crash on nullptr dereference. (diff) | |
download | yuzu-f4fe71c1c9e5f0c2eaa159f676efea3ae1953a22.tar yuzu-f4fe71c1c9e5f0c2eaa159f676efea3ae1953a22.tar.gz yuzu-f4fe71c1c9e5f0c2eaa159f676efea3ae1953a22.tar.bz2 yuzu-f4fe71c1c9e5f0c2eaa159f676efea3ae1953a22.tar.lz yuzu-f4fe71c1c9e5f0c2eaa159f676efea3ae1953a22.tar.xz yuzu-f4fe71c1c9e5f0c2eaa159f676efea3ae1953a22.tar.zst yuzu-f4fe71c1c9e5f0c2eaa159f676efea3ae1953a22.zip |
Diffstat (limited to 'src/core/hle/ipc_helpers.h')
-rw-r--r-- | src/core/hle/ipc_helpers.h | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/core/hle/ipc_helpers.h b/src/core/hle/ipc_helpers.h index 963f3db30..61bda3786 100644 --- a/src/core/hle/ipc_helpers.h +++ b/src/core/hle/ipc_helpers.h @@ -80,8 +80,6 @@ public: memset(cmdbuf, 0, sizeof(u32) * IPC::COMMAND_BUFFER_LENGTH); - ctx.ClearIncomingObjects(); - IPC::CommandHeader header{}; // The entire size of the raw data section in u32 units, including the 16 bytes of mandatory @@ -170,24 +168,6 @@ public: PushIpcInterface<T>(std::make_shared<T>(std::forward<Args>(args)...)); } - void ValidateHeader() { - const std::size_t num_domain_objects = context->NumDomainObjects(); - const std::size_t num_move_objects = context->NumMoveObjects(); - ASSERT_MSG(!num_domain_objects || !num_move_objects, - "cannot move normal handles and domain objects"); - ASSERT_MSG((index - data_payload_index) == normal_params_size, - "normal_params_size value is incorrect"); - ASSERT_MSG((num_domain_objects + num_move_objects) == num_objects_to_move, - "num_objects_to_move value is incorrect"); - ASSERT_MSG(context->NumCopyObjects() == num_handles_to_copy, - "num_handles_to_copy value is incorrect"); - } - - // Validate on destruction, as there shouldn't be any case where we don't want it - ~ResponseBuilder() { - ValidateHeader(); - } - void PushImpl(s8 value); void PushImpl(s16 value); void PushImpl(s32 value); |