mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-07 08:39:00 +00:00
WFSI: Fix the TMD size check.
This commit is contained in:
parent
a641609857
commit
7423563386
1 changed files with 1 additions and 2 deletions
|
@ -136,8 +136,7 @@ IPCCommandResult WFSI::IOCtl(const IOCtlRequest& request)
|
||||||
INFO_LOG(IOS_WFS, "IOCTL_WFSI_PREPARE_DEVICE: patch type %d, continue install: %s",
|
INFO_LOG(IOS_WFS, "IOCTL_WFSI_PREPARE_DEVICE: patch type %d, continue install: %s",
|
||||||
m_patch_type, m_continue_install ? "true" : "false");
|
m_patch_type, m_continue_install ? "true" : "false");
|
||||||
|
|
||||||
constexpr u32 MAX_TMD_SIZE = 0x4000;
|
if (!IOS::ES::IsValidTMDSize(tmd_size))
|
||||||
if (tmd_size > MAX_TMD_SIZE)
|
|
||||||
{
|
{
|
||||||
ERROR_LOG(IOS_WFS, "IOCTL_WFSI_PREPARE_DEVICE: TMD size too large (%d)", tmd_size);
|
ERROR_LOG(IOS_WFS, "IOCTL_WFSI_PREPARE_DEVICE: TMD size too large (%d)", tmd_size);
|
||||||
return_error_code = IPC_EINVAL;
|
return_error_code = IPC_EINVAL;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue