Skip to content

ASLR and NX support on windows #2021

@schlenk

Description

@schlenk

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions