Skip to content

Commit

Permalink
version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
matt24smith committed Aug 14, 2023
1 parent 142fa81 commit 6e3e84d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ documentation = "https://docs.rs/ecfuzz/"
license = "MIT"
readme = "./readme.md"
name = "ecfuzz"
version = "0.1.8"
version = "0.2.0"
edition = "2021"

[[bin]]
Expand Down
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ ecfuzz \
--target ./examples/cli/fuzz_target.c \
--corpus ./examples/cli/input/corpus \
--dictionary-path ./examples/cli/input/sample.dict \
--seed 000 \
--seed 0001 \
--iterations 5000
```

Initializing the fuzzing engine with seed ``000`` finds both bugs in ``fuzz_target.c`` after 4628 attempts.
Initializing the fuzzing engine with seed ``0001`` finds both bugs in ``fuzz_target.c`` after 4705 attempts.
Results will be deterministic as long as the corpus, dictionary, and seed remain unchanged.
Mutations will be logged to the same directory as the ``corpus`` file.

Expand Down
3 changes: 3 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@ const FUZZING_QUEUE_SIZE: usize = 64;

const _WHITESPACE: &str = " ";

/// log coverage increases to stdout
fn log_new_coverage(i: &usize, cov_corpus: &Corpus) {
println!(
"\r\x1b[32mNew coverage!\x1b[0m execs: {} updating inputs...{}{}\n",
i, _WHITESPACE, cov_corpus
);
}

/// log new crashes to stderr
fn log_crash_new(stderr: &[u8], i: &usize, crash_corpus: &Corpus) {
eprintln!(
"\r{}\x1b[31mNew crash!\x1b[0m execs: {} updating crash log...{}{}\n",
Expand All @@ -37,6 +39,7 @@ fn log_crash_new(stderr: &[u8], i: &usize, crash_corpus: &Corpus) {
);
}

/// log known crashes to stderr
fn log_crash_known(stderr: &[u8], i: &usize, crash_corpus: &Corpus) {
eprintln!(
"\r{}\x1b[91mKnown crash!\x1b[0m execs: {}{}\n",
Expand Down

0 comments on commit 6e3e84d

Please sign in to comment.