#fuzzing #allocator

bin+lib bh_alloc

A fuzzer friendly bump pointer allocator

2 releases

0.1.1 Oct 12, 2018
0.1.0 Oct 12, 2018

#53 in Memory management

Download history 24/week @ 2018-10-12 32/week @ 2018-10-19 2/week @ 2018-10-26

19 downloads per month

MIT license

147 lines


This project implements a simple bump allocator for the bughunt-rust project. The allocator works from a fixed-size pool, only ever allocating and never deallocating. When the allocator runs out of memory exit(0) is called.

The motivation for this kind of allocator is to avoid memory allocation failure panics during fuzz runs.

The idea is via @shnatsel in this discussion. I read through wee_alloc when writing this. That project's static array implementation saved me from calling sbrk somewhere.