feat: Skeleton build system for rust-fuzzing#67
Merged
tothtamas28 merged 3 commits intomasterfrom May 6, 2026
Merged
Conversation
33 tasks
tothtamas28
reviewed
May 6, 2026
Comment on lines
+8
to
+14
| let _output = Command::new("kdist") | ||
| .env("KDIST_DIR", &kdist_path) | ||
| .arg("-v") | ||
| .arg("build") | ||
| .arg("stylus-semantics.llvm-library") | ||
| .output() | ||
| .expect("Failed to build the kllvm library with kdist"); |
Contributor
There was a problem hiding this comment.
I think this build script should just consume the path of the interpreter.so file directly, that decouples this binary from how the Python package is dealt with.
Edit: Done: #69
Contributor
There was a problem hiding this comment.
Additionally, we'll need a binary skribe-fuzz to be able to invoke the fuzzer from the skribe script.
tothtamas28
approved these changes
May 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
skribe-fuzz-rs/Adds a subfolder
skribe-fuzz-rswhich contains a crate that builds and links in the kllvm interpreter for skribe's semantics and thekframework-rslibraries.The build script needs
kdistto be on thePATHto build the interpreter.Any library code that will be shared between the
libfuzzertarget and the eventualLibAFLtarget should go into this crate.skribe-fuzz-rs/fuzz/This is a
cargo fuzzgenerated crate with a fuzz target that depends on theskribe-fuzz-rslibrary. It currently fuzzes nothing, but invokes some of the kllvm API to ensure things are working.