mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-10 00:41:26 +12:00
Fix possible infinite loop on vm area searching (sys_mmapper_allocate_address)
Specifically when allocation with 0x8000'0000 alignment fails.
This commit is contained in:
parent
cd4e895c04
commit
a6c94a0eaf
1 changed files with 1 additions and 1 deletions
|
@ -913,7 +913,7 @@ namespace vm
|
||||||
|
|
||||||
static std::shared_ptr<block_t> _find_map(u32 size, u32 align, u64 flags)
|
static std::shared_ptr<block_t> _find_map(u32 size, u32 align, u64 flags)
|
||||||
{
|
{
|
||||||
for (u32 addr = ::align<u32>(0x20000000, align); addr < 0xC0000000; addr += align)
|
for (u32 addr = ::align<u32>(0x20000000, align); addr - 1 < 0xC0000000 - 1; addr += align)
|
||||||
{
|
{
|
||||||
if (_test_map(addr, size))
|
if (_test_map(addr, size))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue