mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Improved compatibility of sceGeListEnQueue: verify that stackDepth < 256
thanks gid15
This commit is contained in:
parent
f23dd7635c
commit
c7e58a79e3
1 changed files with 6 additions and 1 deletions
|
@ -673,7 +673,12 @@ u32 GPUCommon::EnqueueList(u32 listpc, u32 stall, int subIntrBase, PSPPointer<Ps
|
|||
ERROR_LOG_REPORT(G3D, "sceGeListEnqueue: invalid address %08x", listpc);
|
||||
return SCE_KERNEL_ERROR_INVALID_POINTER;
|
||||
}
|
||||
|
||||
|
||||
if (args.IsValid() && args->size >= 256) {
|
||||
ERROR_LOG_REPORT(G3D, "sceGeListEnqueue: invalid size %d", args->size);
|
||||
return SCE_KERNEL_ERROR_INVALID_SIZE;
|
||||
}
|
||||
|
||||
int id = -1;
|
||||
u64 currentTicks = CoreTiming::GetTicks();
|
||||
u32_le stackAddr = args.IsValid() ? args->stackAddr : 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue