Skip to content

Comment on Tip of the day #2: A safer arena allocator

Comments

It is wrong to just use malloc() to make the arena? This way, sanitizers will still help you a bit. It will not help with everything you do within the arena, but it may detect it if you access outside the arena, like the problem the author has.

Other than that, I think using guard pages is the technique libefence (electric fence) uses.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.