-
Notifications
You must be signed in to change notification settings - Fork 1
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
Open to using HeapEnableTerminationOnCorruption and SetProcessDEPPolicy? #4
Comments
Thank you for the suggestions! They look like valuable additions. I have to admit that I'm not entirely into Windows, and I find the documentation rather sparse, so I hope I understand correctly what these functions do.
|
The |
After some research, I think this might not actually be needed. If you agree with my findings below, please feel free to close this ticket. My Windows understanding is... second-hand, so please take these explanations with a little skepticism. First: the The glibc equivalent is References:
Second: But it looks like Rust already merged a linker flag to do this: So it may be that there isn't anything to do here, unless we are concerned about the case where executables are being linked by something other than If you agree, please feel free to close this ticket. Sorry there! I'll double-check what Rust does by default before opening any more tickets. |
Great. Thank you for the investigation!
I think this crate only makes sense for binaries for which the main function is written in Rust, since |
Hi! Would you be open to adding the ability to restrict executable heap on Windows32 with
SetProcessDEPPolicy
, and to make heap errors fatal on Windows withHeapEnableTerminationOnCorruption
? If so I can write the patch.The text was updated successfully, but these errors were encountered: