Re:Why aren't there C conferences? (2018)
by 7steps2much on Saturday August 27, 2022 @12:34PM
(#32620698)
> I would reframe that as: "if you're ok with buffer overflow malware injection, then C is the language for you!" Nobody has yet figured out how to stop that.
Write manual bound checks and good code in general? Granted you won't be able to catch every vulnerability, but at some point other vectors are so much easier to exploit that you won't have to worry about these anymore.
Re:Why aren't there C conferences? (2018)
by burntsushi on Saturday August 27, 2022 @12:42PM
(#32620769)
Oh, of course! Just write good code! Well kiss my grits. I can't believe the solution has been sitting here staring me in the face all this time.
I promise I'll write good code from now on. Scout's honor.
Re:Why aren't there C conferences? (2018)
by 6equj5 on Saturday August 27, 2022 @12:46PM
(#32620806)
Even John Carmack thinks "writing good code" is impossible: https://youtu.be/I845O57ZSy4?t=1351 ; p
Re:Why aren't there C conferences? (2018)
by WalterBright on Saturday August 27, 2022 @02:00PM
(#32621477)
> Write manual bound checks and good code in general?
40 years of C buffer overflows argues that doesn't work.
So you use a translation layer. Sorry, I just don't like them, but if you're fine putting these on all your interfaces with other libraries, well, what can I say? :-)
> If you want automatic bounds checks, then C is not the language for you.
I would reframe that as: "if you're ok with buffer overflow malware injection, then C is the language for you!" Nobody has yet figured out how to stop that.
The sad thing is it's so fixable with just a minor, compatible change to C.