mirror of
https://github.com/starr-dusT/yuzu-mainline
synced 2024-03-05 21:12:25 -08:00
IPC: Don't attempt to read the command buffer if it holds a Close request.
This commit is contained in:
parent
0368324f79
commit
7e3561b1cd
@ -102,6 +102,11 @@ ResultCode HLERequestContext::PopulateFromIncomingCommandBuffer(u32_le* src_cmdb
|
|||||||
Process& src_process,
|
Process& src_process,
|
||||||
HandleTable& src_table) {
|
HandleTable& src_table) {
|
||||||
ParseCommandBuffer(src_cmdbuf, true);
|
ParseCommandBuffer(src_cmdbuf, true);
|
||||||
|
if (command_header->type == IPC::CommandType::Close) {
|
||||||
|
// Close does not populate the rest of the IPC header
|
||||||
|
return RESULT_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
// The data_size already includes the payload header, the padding and the domain header.
|
// The data_size already includes the payload header, the padding and the domain header.
|
||||||
size_t size = data_payload_offset + command_header->data_size -
|
size_t size = data_payload_offset + command_header->data_size -
|
||||||
sizeof(IPC::DataPayloadHeader) / sizeof(u32) - 4;
|
sizeof(IPC::DataPayloadHeader) / sizeof(u32) - 4;
|
||||||
|
Loading…
Reference in New Issue
Block a user