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

>mmap() makes it easy to use read-only memory, which catches memory corruption bugs

You might appreciate this toy Go package I hacked together: https://github.com/lukechampine/freeze

It uses mmap and mprotect to "freeze" Go objects; if you try to modify a frozen object, the program crashes.



Nice!




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

Search: