2 ms·
Null terminated strings are one of the worst failures of design in programming languages of all time. In C you're sort of stuck with turd polishing. It's never
by InclinedPlane 14y ago
Null terminated strings are one of the worst failures of design in programming languages of all time. In C you're sort of stuck with turd polishing. It's never going to be good or right, it's always going to be partly broken in some way.
If I were writing a new code-base in C I'd standardize on using bstring but that too doesn't solve every problem.
- pjmlp 14y agoThe two biggest failures that C brought to computer security were null terminated strings and implicit decay of arrays into pointers.