-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
Description
Currently the .pyd files created via cffi do not enable ASLR and NX security features on windows (like most python extensions and python 2. itself due to the outdated VS2008 toolchain used, which didn't have those as default yet).
A good side effect of ASLR is reduced memory usage if a DLL is loaded a lot of times into different processes and would be rebased from a collision otherwise (as the build doesn't use a non standard baseaddress either currently).
The .pyd files should be built with /DYNAMICBASE and /NXCOMPAT linker flags.