Comment by dnautics
5 hours ago
Yeah that's certainly possible but leaking a pointer like this seems like it would be really easy to spot?
5 hours ago
Yeah that's certainly possible but leaking a pointer like this seems like it would be really easy to spot?
It's harder than you'd expect. Depending on what kind of bucketing an arena does (by size or by type), a stale reference may end up pointing to another piece of memory of the correct type, which is still wrong, but more subtly than a crash.