Comment by basilgohar
1 month ago
I like this. The only information leaking is whether the memory range was previously used. I suppose you may want to control for that. I'd be surprised if OpenBSD didn't provide a flag to just freed memory to the same value as never allocated.
This makes me curious. This bit of information – knowing whether the memory range was previously used or not – how could it be exploited?