mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-01-20 15:40:30 +01:00
rsx: Fix potential out of range methods execution (can result in segfaults)
This commit is contained in:
parent
51188db717
commit
500a4fa2fb
|
|
@ -548,7 +548,7 @@ namespace rsx
|
|||
}
|
||||
}
|
||||
|
||||
const u32 reg = command.reg >> 2;
|
||||
const u32 reg = (command.reg & 0xffff) >> 2;
|
||||
const u32 value = command.value;
|
||||
|
||||
method_registers.decode(reg, value);
|
||||
|
|
|
|||
Loading…
Reference in a new issue