On 11/24/2026 4:08 PM, Simon Clubley wrote:
> In C, I would like to see people stop using library functions that have > no way of doing bounded buffer copies (strcpy() and friends for example). > I would say that is a common sense thing to ask for, but after some recent > CVEs it would appear common sense is not all that common.
It is going that way. strlxxx/strxxx_s is taking over from strxxx and strnxxx. Just too bad that *nix and MS went different ways. C standard need to catch up.
> In C++, I would like to see people stop using unchecked bounds access > (ie: []) to access containers and start using checked access (ie: at()) > always instead. It's insane that [] wasn't the checked option so you got > safer code by default. > > BTW, I know some environments now allow [] to become checked. It would > be nice to see that left enabled in production code, especially in > today's environment.
+1
> Another minor annoyance of mine. When you write code, you are modelling > a real-world problem. I hate that people sometimes run to using signed > integers by default when most of the time, unsigned integers are a more > accurate match.
Neither −2147483648..2147483647 nor 0..4294967295 are likely to map to anything business relevant. 1..10 0..999 etc. Arne