mirror of
https://github.com/LSPosed/LSPlt.git
synced 2025-05-06 21:48:48 +08:00
Always use sys_mmap because of a bug of bionic
This commit is contained in:
parent
1ff11177b0
commit
9c94e28088
@ -171,7 +171,7 @@ public:
|
||||
LOGD("Restore %p from %p", reinterpret_cast<void *>(info.start),
|
||||
reinterpret_cast<void *>(info.backup));
|
||||
if (auto *new_addr =
|
||||
mremap(reinterpret_cast<void *>(info.backup), len, len,
|
||||
sys_mremap(reinterpret_cast<void *>(info.backup), len, len,
|
||||
MREMAP_FIXED | MREMAP_MAYMOVE, reinterpret_cast<void *>(info.start));
|
||||
new_addr == MAP_FAILED || reinterpret_cast<uintptr_t>(new_addr) != info.start) {
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user