From 11b738f54aad4d24167c475c8c53a2cbc1d38836 Mon Sep 17 00:00:00 2001 From: Ty Lamontagne Date: Tue, 29 Oct 2024 14:54:46 -0400 Subject: [PATCH] Dis5900asm: Fix an out of bounds access on invalid pmfhl formats --- pcsx2/DebugTools/DisR5900asm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcsx2/DebugTools/DisR5900asm.cpp b/pcsx2/DebugTools/DisR5900asm.cpp index 3bedf66a4e355..746fe86eb4cf2 100644 --- a/pcsx2/DebugTools/DisR5900asm.cpp +++ b/pcsx2/DebugTools/DisR5900asm.cpp @@ -1071,7 +1071,7 @@ void MTSAH( std::string& output ) { _sap("mtsah\t%s, 0x%04X") GPR_REG[DECODE_R //***************************SPECIAL 2 CPU OPCODES******************* -const char* pmfhl_sub[] = {"lw", "uw", "slw", "lh", "sh", "??", "??"}; +const char* pmfhl_sub[] = {"lw", "uw", "slw", "lh", "sh", "??", "??", "??"}; void MADD( std::string& output ) { _sap("madd\t%s, %s %s") GPR_REG[DECODE_RD],GPR_REG[DECODE_RS], GPR_REG[DECODE_RT]); } void MADDU( std::string& output ) { _sap("maddu\t%s, %s %s") GPR_REG[DECODE_RD],GPR_REG[DECODE_RS], GPR_REG[DECODE_RT]);}