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

Add ability to change memory protection on std::os::MemoryMap. #17805

Closed
wants to merge 1 commit into from

Conversation

xales
Copy link
Contributor

@xales xales commented Oct 5, 2014

No description provided.

@rust-highfive
Copy link
Collaborator

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @alexcrichton (or someone else) soon.

@rust-highfive
Copy link
Collaborator

warning Warning warning

  • These commits modify unsafe code. Please review it carefully!

(true, true, false) => libc::PAGE_EXECUTE_READ,
(true, true, true) => libc::PAGE_EXECUTE_READWRITE,
_ => return Err(ErrUnsupProt)
};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of duplicating the logic above, could it be refactored into a helper function? (same for unix)

@alexcrichton
Copy link
Member

Closing due to inactivity, but feel free to reopen with my comment addressed!

lnicola pushed a commit to lnicola/rust that referenced this pull request Aug 13, 2024
fix: Panic in path transform with default type parameters

Fixes rust-lang#17578
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.

3 participants