Tip of the day #2: A safer arena allocator

(gaultier.github.io)

22 points | by broken_broken_ 6 days ago ago

2 comments

  • mananaysiempre 14 hours ago

    If you want to go further, ASAN and Valgrind both have APIs for integrating custom allocators. So you basically do what ASAN does with malloc in the first place—allocate (a bit more) memory, poison it, then pad all user allocations on both ends and only unpoison the actually requested part.

  • 16 hours ago
    [deleted]