Skip to content
This repository was archived by the owner on Sep 28, 2025. It is now read-only.

Conversation

@drdavella
Copy link
Contributor

I have observed intermittent page allocation failures when attempting to apply a patch. This has occurred on OSX in an environment that I believe to be under significant memory pressure, although it is difficult to reproduce.

It seems like the check for pages returned by mmap might be too strict. This PR attempts to make the check more permissive while still being safe for 32-bit relative jumps.

@kubo kubo merged commit 0c16d72 into kubo:master Mar 20, 2021
@kubo
Copy link
Owner

kubo commented Mar 20, 2021

Thank you! It looks reasonable.

fengjixuchui added a commit to fengjixuchui/funchook that referenced this pull request Apr 13, 2021
Merge pull request kubo#25 from drdavella/permissive-page-check
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants