1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-25 04:02:42 +01: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:
Eladash 2019-08-01 22:32:08 +03:00 committed by Ivan
parent cd4e895c04
commit a6c94a0eaf

View File

@ -913,7 +913,7 @@ namespace vm
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))
{