News for hackers. Stuff that matters.
Re:Undefined behavior is often a thing for C programmers (2011) by armitron on Thursday September 03, 2020 @11:22PM (#24371413)
It's actually a big problem and anything but common sense.

Do all C programmers know what strict aliasing means?

How about pointer provenance?

Have they memorized integer promotion rules?

These are all potential sources of undefined behavior that can lead to catastrophic results.

I bet most experienced C programmers with decades under their belt would fail one or more of these tests.

There are no comments on this comment yet.