News for hackers. Stuff that matters.
Re:Tell HN: C Experts Panel – Ask us anything about C by Uptrenda on Tuesday April 14, 2020 @12:53PM (#22868294)
What would you say to people who claim that writing "secure C code" is impossible [not me but I'm curious what you all think]?
Re:Tell HN: C Experts Panel – Ask us anything about C by AaronBallman on Tuesday April 14, 2020 @01:55PM (#22869167)
I'd ask them if they really meant "impossible" or just "harder than I wish it was".

I've typically found that the tradeoffs between security, performance, and implementation efforts are usually more to blame for why writing secure C code is a challenge. There are a ton of tools out there to help with writing secure code (compiler diagnostics, secure coding standards, static analyzers, fuzzers, sanitizers, etc), but you need to use all the tools at your disposal (instead of only a single source of security) which adds implementation cost and sometimes runtime overhead that needs to be balanced against shipping a product.

This isn't to suggest that the language itself doesn't have sharp edges that would be nice to smooth over, though!