Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix parsing the PLT on Windows #2445

Open
wants to merge 4 commits into
base: stable
Choose a base branch
from

Conversation

peace-maker
Copy link
Member

The Unicorn Engine 1GB workaround doesn't work since mmap has different semantics on Windows.

@Arusekk
Copy link
Member

Arusekk commented Aug 25, 2024

I would prefer catching the ImportError to checking for W32 explicitly, since other exotic platforms might also be missing MAP_ANON or other things here and otherwise work correctly; I generally think it is better to test for features rather than platforms (see MDN: Don't browser sniff).

@peace-maker
Copy link
Member Author

Yup, you're right

@peace-maker
Copy link
Member Author

This should target stable since that 1GB allocation is in there too.

The Unicorn Engine 1GB workaround doesn't work since `mmap` has different semantics on Windows.
@peace-maker peace-maker changed the base branch from dev to stable August 25, 2024 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants