mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-06 06:51:26 +12:00
PPUAnalyzer: Check if TOC from OPD is a valid address
This commit is contained in:
parent
1cb3bf6dab
commit
5960de2e20
1 changed files with 1 additions and 1 deletions
|
@ -664,7 +664,7 @@ void ppu_module::analyse(u32 lib_toc, u32 entry)
|
||||||
const u32 _toc_end = _toc + 0x8000;
|
const u32 _toc_end = _toc + 0x8000;
|
||||||
|
|
||||||
// TODO: improve TOC constraints
|
// TODO: improve TOC constraints
|
||||||
if (_toc % 4 || _toc == 0 || _toc >= 0x40000000 || (_toc >= start && _toc < end))
|
if (_toc % 4 || !vm::check_addr(_toc) || _toc >= 0x40000000 || (_toc >= start && _toc < end))
|
||||||
{
|
{
|
||||||
sec_end.set(0);
|
sec_end.set(0);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue