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

Paycoin-Qt (Windows only): add ASLR and DEP linker flags #417

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MitchellCash
Copy link
Contributor

  • for extra security on Windows: enable ASLR and DEP via GCC linker flags

GCC linker flag description:
--dynamicbase The image base address may be relocated using address space layout randomization (ASLR). This feature was introduced with MS Windows Vista for i386 PE targets.
--nxcompat The image is compatible with the Data Execution Prevention.
This feature was introduced with MS Windows XP SP2 for i386 PE targets.

Tor project is also using this.

@MitchellCash
Copy link
Contributor Author

@IngCr3at1on
Copy link
Contributor

This seems to build fine in gitian. Are there any possible consequences of enabling these features?

@MitchellCash
Copy link
Contributor Author

We've already had DEP on Windows builds in Paycoin since around mid August so that's fine and I also don't foresee any negatives with enabling ASLR.

@IngCr3at1on
Copy link
Contributor

Hmm, I'm so out of windows stuff anymore lol

I wonder if this will effect the windows 10 issues with corrupting wallets (doesn't effect 7 as far as I understand).

@MitchellCash
Copy link
Contributor Author

What's this about corrupting wallets?

@IngCr3at1on
Copy link
Contributor

I have very limited information as no-one who's experienced it has opened an issue but there were some mentions of windows 10 corrupting wallets.

@MitchellCash
Copy link
Contributor Author

@IngCr3at1on the issue you mention based off discussions to others is unrelated so this should be safe for merge.

@IngCr3at1on
Copy link
Contributor

@MitchellCash this requires rebase

- for extra security on Windows: enable ASLR and DEP via GCC linker flags

GCC linker flag description:
--dynamicbase  The image base address may be relocated using address space layout randomization (ASLR). This feature was introduced with MS Windows Vista for i386 PE targets.
--nxcompat The image is compatible with the Data Execution Prevention.
This feature was introduced with MS Windows XP SP2 for i386 PE targets.
@MitchellCash MitchellCash force-pushed the Qt_Win_ASLR_DEP_linker_flag branch from 45bd2f0 to e68249c Compare February 19, 2016 01:23
@MitchellCash
Copy link
Contributor Author

@IngCr3at1on rebased

@IngCr3at1on
Copy link
Contributor

I don't foresee any issues with this but I'd like to get some extended testing on it anyway if possible. Can you arrange that for us @CeForce?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants