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

The beginning and end of the allocated section of memory (the guard pages they refer to) are marked as PROT_NONE with mprotect, meaning that any access to them will cause a segfault. It's possible that a misbehaving process could jump straight into the unprotected memory, but it would have to not read from the guard pages at all. Buffer overruns don't have that problem (since they access memory sequentially), and would cause the program to crash before any sensitive data could be read (assuming the overrun starts outside the protected area).


That makes sense, thank you!




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

Search: