Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: