Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.34
0.1.35
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "skribe"
version = "0.1.34"
version = "0.1.35"
description = "Property testing for Stylus smart contracts"
readme = "README.md"
requires-python = "~=3.10"
Expand Down
7 changes: 7 additions & 0 deletions skribe-fuzz-rs/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions skribe-fuzz-rs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ hex-literal = "1.1.0"
kframework = { git = "https://github.com/runtimeverification/kframework-rs.git", rev = "1e7ee3a" }
kframework_ffi = { git = "https://github.com/runtimeverification/kframework-rs.git", rev = "1e7ee3a" }
libfuzzer-sys = "0.4"
pico-args = "0.5.0"
serde = "1.0.228"
serde_json = "1.0.149"

Expand Down
1 change: 1 addition & 0 deletions skribe-fuzz-rs/fuzz/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ cargo-fuzz = true

[dependencies]
libfuzzer-sys.workspace = true
pico-args = { workspace = true, features = ["eq-separator"] }

[dependencies.skribe-fuzz-rs]
path = ".."
Expand Down
17 changes: 16 additions & 1 deletion skribe-fuzz-rs/fuzz/fuzz_targets/fuzz_target_1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,25 @@

use libfuzzer_sys::fuzz_target;

use skribe_fuzz_rs::{kllvm, make_dv};
use pico_args::Arguments;

use skribe_fuzz_rs::{kllvm, fuzz_specs_from_json, make_dv};

fuzz_target!( init: {
kllvm::init();
let mut args = Arguments::from_env();

let fuzz_spec_file: Option<String> = args
// You must pass this option as `--fuzz-spec=<specfile>` with the
// equals sign, otherwise libfuzzer treats it as a positional argument
.opt_value_from_str("--fuzz-spec")
.unwrap();

if let Some(file) = fuzz_spec_file {
let contents = std::fs::read_to_string(file).unwrap();
let specs = fuzz_specs_from_json(&contents).unwrap();
println!("{:?}", specs);
}
},
|data: &[u8]| {
let _ = make_dv();
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading