rust-osdev / linked-list-allocator

Apache License 2.0
219 stars 53 forks source link

random action fuzzer #69

Closed evanrichter closed 1 year ago

evanrichter commented 2 years ago

This cargo-fuzz harness tests the following actions randomly, making sure each call is safe before invoking linked-list-allocator APIs:

It also initializes the Heap with a random size.

Besides the harness, I added a #[cfg(fuzzing)]-gated debug printer for Heap which helped when adding buffering to extend. Since it's not needed for actual fuzzing (the harness has DEBUG = false by default), I can remove that if requested!

phil-opp commented 1 year ago

Thanks a lot for this PR and sorry for the delay in merging!