Experiments with Memory Integrity Enforcement
octet-stream.net·12h·
Discuss: Hacker News
🦀Rust
Preview
Report Post

16 December 2025

Imagine if you could write C code and the computer would detect and abort immediately if you wrote one byte past the end of your heap allocation—or if you tried to access it after it was freed. It sounds like AddressSanitizer, right? It’s a useful tool but slow and often annoying to instrument builds. Now, imagine if this kind of protection was turned on all the time, running in production builds on your users’ devices, and there was no performance penalty for doing so.

No need to imagine: Apple has already shipped it. It’s called Memory Integrity Enforcement. If you have one of their latest processors, the A19 or M5, this capability is already in your …

Similar Posts

Loading similar posts...