2 ms·
Security problems aren't just buffer overflows. Using another language gives you another set of problems. And of course, the underlying problem is the computa
by jrockway 11y ago
Security problems aren't just buffer overflows. Using another language gives you another set of problems. And of course, the underlying problem is the computation model employed by all modern computers, so using a higher-level language doesn't necessarily protect you from buffer overflows.
I'd say the biggest trap for young players is the C standard library, rather than anything about C the language. Null-terminated strings are very space efficient, but hard to work with. If you're willing to use something like bstrings, then you're setting yourself up for a higher likelihood of success. But most people choose what's built in, either for compatibility with other libraries, inertia, or not wanting yet another dependency, and then mess something up.
- munin 11y ago> Using another language gives you another set of problems No, you have those problems in C too. Using another language gives you the problems you had before and takes away the memory safety problems.