IRInterpreter compiler: Reject all vec2ops where the prefix is unknown

Fixes #19164

May help #19172
This commit is contained in:
Henrik Rydgård committed 2024-05-22 23:19:14 +02:00
1 parent dc68f406aa
commit 5e3abe3def
2 files changed
+6 -1

No files matched your search

+1 -1
View File
@@ -884,7 +884,7 @@ static int sysclib_sprintf(u32 dst, u32 fmt) {
DEBUG_LOG(SCEKERNEL, "sysclib_sprintf result string has length %d, content:", (int)result.length());
DEBUG_LOG(SCEKERNEL, "%s", result.c_str());
if (!Memory::IsValidRange(dst, result.length() + 1)) {
if (!Memory::IsValidRange(dst, (u32)result.length() + 1)) {
ERROR_LOG(SCEKERNEL, "sysclib_sprintf result string is too long or dst is invalid");
return 0;
}