Debugger: Fixed out-of-bounds memory access in disassembler
This commit is contained in:
parent
cbeaa18c7d
commit
da031ab697
1 changed files with 1 additions and 1 deletions
|
@ -234,7 +234,7 @@ void Disassembler::Disassemble(CpuType cpuType)
|
||||||
}
|
}
|
||||||
|
|
||||||
if(needRealign) {
|
if(needRealign) {
|
||||||
for(int j = 1; j < opSize; j++) {
|
for(int j = 1, max = (int)(*cache).size(); j < opSize && addrInfo.Address + j < max; j++) {
|
||||||
if((*cache)[addrInfo.Address + j].IsInitialized()) {
|
if((*cache)[addrInfo.Address + j].IsInitialized()) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue