From 1aa6e5df958bd54811b284865d7b1a4b22877440 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 10 Mar 2014 03:28:17 -0400 Subject: [PATCH] Fix a case where an array is read out of bounds in cellSpurs.cpp --- rpcs3/Emu/SysCalls/Modules/cellSpurs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/SysCalls/Modules/cellSpurs.cpp b/rpcs3/Emu/SysCalls/Modules/cellSpurs.cpp index e6e9bbd98e..aca92144af 100644 --- a/rpcs3/Emu/SysCalls/Modules/cellSpurs.cpp +++ b/rpcs3/Emu/SysCalls/Modules/cellSpurs.cpp @@ -57,7 +57,7 @@ int cellSpursAttributeEnableSystemWorkload(mem_ptr_t attr, c cellSpurs.Warning("cellSpursAttributeEnableSystemWorkload(attr_addr=0x%x, priority[%u], maxSpu=%u, isPreemptible[%u])", attr.GetAddr(), priority, maxSpu, isPreemptible); if(!attr.IsGood()) return CELL_SPURS_CORE_ERROR_NULL_POINTER; - for (int i=0; i<9; i++) + for (int i=0; i<8; i++) if(priority[i] != 1 || maxSpu == 0) return CELL_SPURS_CORE_ERROR_INVAL; return CELL_OK;