#fuzzing #allocator #nostd

bh_alloc

A fuzzer friendly bump pointer allocator

6 releases

0.2.4 Dec 30, 2018
0.2.3 Dec 16, 2018
0.2.0 Nov 5, 2018
0.1.1 Oct 12, 2018

#53 in Memory management

Download history 13/week @ 2018-11-07 12/week @ 2018-11-14 7/week @ 2018-11-21 14/week @ 2018-11-28 10/week @ 2018-12-05 22/week @ 2018-12-12 42/week @ 2018-12-19 18/week @ 2018-12-26 16/week @ 2019-01-02 6/week @ 2019-01-09 8/week @ 2019-01-16 1/week @ 2019-01-23 1/week @ 2019-01-30 28/week @ 2019-02-06 11/week @ 2019-02-13

77 downloads per month

MIT license

9KB
176 lines

bh_alloc

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.

Dependencies

~189KB