Navigation Menu

Skip to content

Commit

Permalink
Improved compatibility of sceGeListEnQueue: verify that stackDepth < 256
Browse files Browse the repository at this point in the history
thanks gid15
  • Loading branch information
sum2012 committed May 12, 2020
1 parent f23dd76 commit c7e58a7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion GPU/GPUCommon.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit c7e58a7

Please sign in to comment.