We should forget about small efficiencies — Donald Knuth
1 Sep
OpenBSD: Improved Memory Allocation, Beta Testing 3.8, from KernelTrap.
OpenBSD creator Theo de Raadt described a number of modifications to how OpenBSD allocates memory:
Theo points out that these changes have a couple of significant impacts. He explains that for over a decade efforts have been made to find and fix buffer overflows, and more recently bugs have been found in which software is reading before the start of a buffer, or beyond the end of the buffer. With these recent memory allocation changes, such an attempt will cause the application to coredump with a SIGSEGV signal.
Additionally, now that memory is unmapped as soon as it is freed, any attempt to access freed memory will also cause the application to coredump with a SIGSEGV signal.
Popularity: 13% [?]
Leave a reply