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

There is also a completely different scenario where out-of-bounds writes aren't undefined behavior anymore. And that's when you've manually defined the arrays in an assembly source file, and exported their symbols. In that situation, you know what's before the array or after the array, so doing pointer math into an adjacent area has a well known effect.


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

Search: