2 ms·
I refuse to believe that the wicked Buffer Overflow has completely stymied humanity. Use array/string/buffer libraries. They're very small and very easy to te
by camgunz 11y ago
I refuse to believe that the wicked Buffer Overflow has completely stymied humanity. Use array/string/buffer libraries. They're very small and very easy to test. Pass them around instead of a "char *" and a "size_t".
Now, if you want to talk about signed overflow, bitwise operations on signed types, wacky undefined behavior, or memory management, that stuff is pretty hard to deal with in C. But 99% of the time when people are shaking their fists at "shitty ol' C ruining the Internet for everyone", they mean buffer overflows, and it just shouldn't be an issue these days.