mirror of
https://git.h3cjp.net/H3cJP/citra.git
synced 2024-11-26 02:32:52 +00:00
Fix parameter_size in GetStartupArgument
This commit is contained in:
parent
fd5f71bcff
commit
be1ae17c61
|
@ -620,12 +620,12 @@ void Module::Interface::GetStartupArgument(Kernel::HLERequestContext& ctx) {
|
|||
u32 parameter_size = rp.Pop<u32>();
|
||||
StartupArgumentType startup_argument_type = static_cast<StartupArgumentType>(rp.Pop<u8>());
|
||||
|
||||
if (parameter_size >= 0x300) {
|
||||
if (parameter_size > 0x300) {
|
||||
parameter_size = 0x300;
|
||||
LOG_ERROR(
|
||||
Service_APT,
|
||||
"Parameter size is outside the valid range (capped to 0x300): parameter_size={:#010X}",
|
||||
parameter_size);
|
||||
return;
|
||||
}
|
||||
|
||||
std::vector<u8> parameter(parameter_size, 0);
|
||||
|
|
Loading…
Reference in a new issue