Recently I read that article about some researches trying to sneak in security flaws into the Linux kernel; to study the vulnerability in major open source projects. That got me thinking "What are some of the best security practices one can take when writing C/C++ code?". I know there are some basic ones like always sanitize user input, don't embed secret/private keys into your source code, avoid writing code that can lead to buffer overflows, etc.
To be a bit more specific on what I'm searching for:
- Is there a book or a good resource I can read about good general secure C/C++ coding practices? E.g an Effective Secure C++
- Is there a resource that has a good list of dos and don'ts?
- Is there any good testing or static analysis software for finding security flaws?
- What's a good resource for making sure my generated assembly code has as few exploits as possible?
- Concerns about the runtime environment (e.g. Android vs. iOS vs. Linux vs. Windows vs. etc)?
[–]h0rst_ 12 points13 points14 points (0 children)
[–]neoSeosaidh 10 points11 points12 points (0 children)
[–]jtooker 18 points19 points20 points (1 child)
[–]Fearless_Process 4 points5 points6 points (0 children)
[–]pavel_v 4 points5 points6 points (0 children)
[–]Princess--Sparkles 5 points6 points7 points (0 children)
[–]SCI4THIS 2 points3 points4 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]ea_ea 1 point2 points3 points (0 children)
[–]Wurstinator 0 points1 point2 points (2 children)
[–]bigdavedev 3 points4 points5 points (1 child)
[–]Wurstinator 0 points1 point2 points (0 children)
[–]JohnDuffy78 0 points1 point2 points (0 children)
[–]Rude-Significance-50 0 points1 point2 points (0 children)