mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Merge pull request #19173 from hrydgard/ir-interpreter-prefix-check
IRInterpreter compiler: Reject all vec2ops where the prefix is unknown while compiling
This commit is contained in:
commit
b6ce56dec0
2 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -969,6 +969,11 @@ namespace MIPSComp {
|
|||
|
||||
void IRFrontend::Comp_VV2Op(MIPSOpcode op) {
|
||||
CONDITIONAL_DISABLE(VFPU_VEC);
|
||||
|
||||
if (js.HasUnknownPrefix()) {
|
||||
DISABLE;
|
||||
}
|
||||
|
||||
int optype = (op >> 16) & 0x1f;
|
||||
if (optype == 0) {
|
||||
if (js.HasUnknownPrefix() || !IsPrefixWithinSize(js.prefixS, op))
|
||||
|
|
Loading…
Add table
Reference in a new issue