3 ms·
No True C Programmer writes code with buffer overflows in it. It's pretty clear this is not a serious take.
by wffurr 2y ago
No True C Programmer writes code with buffer overflows in it. It's pretty clear this is not a serious take.
- defrost 2y agoFWiW "True C Programmers" delibrately coded "buffer overflows" all the time back in the day. The practice of using variable sized structures that began with type and size info and ended with a char[1] was commonplace. https://hex-rays.com/blog/igors-tip-of-the-week-94-variable-sized-structures/ https://hex-rays.com/blog/igors-tip-of-the-week-94-variable-... Good True C Programmers had guard rails | canary bytes | etc. to detect and avoid actual buffer overflow (into unallocated memory) rather than technical buffer overflow (reading|writing past the end of a char|byte array).