4 ms·
The default Zig allocator will actually make it very hard to have unnoticed use-after-free. It doesn't re-use the virtual address space, it will discard the pag
by ayende 5y ago
The default Zig allocator will actually make it very hard to have unnoticed use-after-free. It doesn't re-use the virtual address space, it will discard the page entirely and get a new one, that make it far more likely that a use-after-free will get a segmentation fault.
- the_why_of_y 5y agoWouldn't that require allocating a full page for a 1-byte object? That would be rather wasteful, both in space and in munmap(2) overhead.
- pjmlp 5y agoBasically the same as debug allocators for C and C++, what is the improvement there?