3 ms·
The major source of bugs in C is located on string.h, and nothing has been made in 50 years to fix that. Really fix, not mitigations with their own gotchas.
by pjmlp 2y ago
The major source of bugs in C is located on string.h, and nothing has been made in 50 years to fix that.
Really fix, not mitigations with their own gotchas.
- Dwedit 2y agoThere have been things done to try to fix that, see "strcpy_s" and other related functions. Visual Studio even considers use of the classic string functions (like "strcpy") to be a compiler error. You need to define a specific macro before you are allowed to use them.