From c7e58a79e36029626fbf6f3a35ae9c021600fae8 Mon Sep 17 00:00:00 2001 From: sum2012 Date: Tue, 12 May 2020 21:30:25 +0800 Subject: [PATCH] Improved compatibility of sceGeListEnQueue: verify that stackDepth < 256 thanks gid15 --- GPU/GPUCommon.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/GPU/GPUCommon.cpp b/GPU/GPUCommon.cpp index 02d1d33e98..094112a096 100644 --- a/GPU/GPUCommon.cpp +++ b/GPU/GPUCommon.cpp @@ -673,7 +673,12 @@ u32 GPUCommon::EnqueueList(u32 listpc, u32 stall, int subIntrBase, PSPPointersize >= 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;