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

I'm agreeing with you. I'm saying that a bounds checker is better than a segfault because it always works.

(You're right that it actually doesn't always work because sometimes your stale index will still be inside the array but refer to a different thing, but at least it can't be abused to write into other arrays).



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

Search: