News for hackers. Stuff that matters.
Re:C’s Biggest Mistake (2009) by account42 on Tuesday September 15, 2020 @05:50AM (#24479484)
I'm curious what you'd want the automatica bounds checking to do?

Just terminating the program won't be much better than OOB memory access in many cases.

Continuing but discarding OOB writes/use a dummy for OOB reads could lead to much worse behavior.

An exception (or setting errno since this is C) would need that exception to be handled somewhere in a sensible way in which case you could just as easily add manual bounds checking.

There are no comments on this comment yet.