3 ms·
As sibling notes, executable memory is not by default writable. If desired, you can also further disallow any executable memory to me allocated or modified by y
by dwattttt 1y ago
As sibling notes, executable memory is not by default writable. If desired, you can also further disallow any executable memory to me allocated or modified by your process, even via the normal APIs, by calling SetProcessMitigationPolicy with ProcessDynamicCodePolicy.
https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-setprocessmitigationpolicy https://learn.microsoft.com/en-us/windows/win32/api/processt...
- p_ing 1y agoThe exception to this is if you're leveraging large-page support. Large pages are always read/write (and nonpageable). But that's a rare edge case.