Skip to content

Commit

Permalink
Merge pull request #12889 from sum2012/gpu-minor
Browse files Browse the repository at this point in the history
Improved compatibility of sceGeListEnQueue: verify that stackDepth < 256
  • Loading branch information
hrydgard authored May 13, 2020
2 parents e68d561 + c7e58a7 commit 009efa5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion GPU/GPUCommon.cpp
Original file line number Diff line number Diff line change
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 009efa5

Please sign in to comment.