mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-20 17:59:08 +02:00
Fixed an out-of-range access crash
This commit is contained in:
1 parent
5898466330
commit
c9c74f751c
1 file changed
+1
-1
+1
-1
@@ -905,7 +905,7 @@ const HLEFunction *GetSyscallFuncPointer(MIPSOpcode op) {
|
||||
int funcnum = callno & 0xFFF;
|
||||
int modulenum = (callno & 0xFF000) >> 12;
|
||||
if (funcnum == 0xfff) {
|
||||
std::string_view modName = modulenum > (int)moduleDB.size() ? "(unknown)" : moduleDB[modulenum].name;
|
||||
std::string_view modName = modulenum >= (int)moduleDB.size() ? "(unknown)" : moduleDB[modulenum].name;
|
||||
ERROR_LOG(Log::HLE, "Unknown syscall: Module: '%.*s' (module: %d func: %d)", (int)modName.size(), modName.data(), modulenum, funcnum);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user