message: refactor: simplify mprotect() calls in ProtectAddress()
diff: @@ -68,21 +68,10 @@ void ProtectAddress(uintptr_t address, uint32_t length, const MemoryProtectionFl
  }
  const uintptr_t pageSize = static_cast<uintptr_t>(getpagesize());
  -
  - while (true)
  - {
  const uintptr_t currentPage = address & ~(pageSize - 1);
  - mprotect(reinterpret_cast<void*>(currentPage), length, platformFlags);
  - uintptr_t toNextPage = (currentPage + pageSize) - address;
  -
  - if (toNextPage >= length)
  - {
  - break;
  - }
  + const size_t lengthWithPadding = length + (address - currentPage);
  - length -= toNextPage;
  - address += pageSize;
  - }
  + mprotect(reinterpret_cast<void*>(currentPage), lengthWithPadding, platformFlags);
  #endif
  }
  