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

harden the build #6

Open
andlabs opened this issue Sep 29, 2015 · 10 comments
Open

harden the build #6

andlabs opened this issue Sep 29, 2015 · 10 comments

Comments

@andlabs
Copy link
Owner

andlabs commented Sep 29, 2015

see telegramdesktop/tdesktop#1112

TODO other sanitizers?

@jvoisin
Copy link

jvoisin commented Oct 6, 2015

There is a small list of things to consider here.

@andlabs
Copy link
Owner Author

andlabs commented Oct 6, 2015

Thanks; I'll keep this in mind too.

@andlabs
Copy link
Owner Author

andlabs commented Oct 12, 2015

also use the clang static analyzer

@andlabs
Copy link
Owner Author

andlabs commented Nov 6, 2015

-fsanitize=memory

@asarubbo
Copy link

Hello.
While is fine add hardening flags, to prevent overflow to be exploited, if you talk about asan, just consider this: http://www.openwall.com/lists/oss-security/2016/02/17/9

@andlabs
Copy link
Owner Author

andlabs commented Oct 12, 2016

Yes, I'm aware I'm using "hardening" as a generic term here. With the cmake scripts I have set up I can make it so that asan and what not are only included in the debugging builds if I do switch them on (and I really should); thanks for the note!

@andlabs
Copy link
Owner Author

andlabs commented Mar 24, 2018

@andlabs
Copy link
Owner Author

andlabs commented Mar 26, 2018

@DemiMarie
Copy link

If using clang, we can use -fsanitize=undefined -fsanitize-trap-on-error in production. That is not only safe, but also a significant security improvement.

@andlabs
Copy link
Owner Author

andlabs commented Mar 29, 2018

Interesting. Do you have any more information (such as links) about those options?

@andlabs andlabs added this to the Unassigned Backlog milestone Dec 31, 2018
szanni pushed a commit to szanni/libui that referenced this issue Jan 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants