vm: fix endless loop in map_self if map returns nullptr

This commit is contained in:
Megamouse
2026-09-30 12:06:39 +03:00
committed by Elad
parent dcbc44a399
commit fb4a09215a
+10
View File
@@ -1001,6 +1001,16 @@ namespace utils
if (!mapped)
{
mapped = this->map(nullptr, prot);
if (!mapped)
{
if ((ptr = m_ptr))
{
break;
}
return nullptr;
}
}
// Install mapped memory