Skip to content

random action fuzzer #69

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 10, 2022
Merged

random action fuzzer #69

merged 1 commit into from
Oct 10, 2022

Conversation

evanrichter
Copy link
Contributor

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

  • allocate_first_fit
  • deallocate
  • extend

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
Copy link
Member

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

@phil-opp phil-opp merged commit aa7d9f6 into rust-osdev:main Oct 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants