From a15c7f89abd2eb8bee782710d9dac857f9bd4642 Mon Sep 17 00:00:00 2001 From: Donald Filimon Date: Sun, 27 Jul 2025 02:21:47 -0400 Subject: [PATCH] Update fuzz documentation paths --- .github/workflows/ci.yml | 2 +- README.md | 2 +- docs/testing.md | 2 +- tools/fuzz/README.md | 4 ++-- tools/fuzz/corpus/seed1.ouro | 1 + 5 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 tools/fuzz/corpus/seed1.ouro diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 934a06c..a131c3a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -53,4 +53,4 @@ jobs: mkdir build && cd build cmake -DENABLE_FUZZ=ON .. make fuzz_lexer - ./fuzz_lexer -i ../fuzz/corpus -o ./findings -t 1000 + ./fuzz_lexer -i ../tools/fuzz/corpus -o ./findings -t 1000 diff --git a/README.md b/README.md index c2a3691..f1d7dae 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ contributions are welcome—see `docs/contrib.md` for guidelines. Experimental AFL++ harnesses live in `tools/fuzz`. They can be built with CMake using `-DENABLE_FUZZ=ON` and run against the sample -corpus in `fuzz/corpus` to discover crashes in the lexer and parser. +corpus in `tools/fuzz/corpus` to discover crashes in the lexer and parser. ## Legacy Ouroboros Sources diff --git a/docs/testing.md b/docs/testing.md index b39056c..fe26739 100644 --- a/docs/testing.md +++ b/docs/testing.md @@ -19,5 +19,5 @@ If AFL++ is installed you can build the lexer fuzzer: ``` cmake -DENABLE_FUZZ=ON .. make fuzz_lexer -./fuzz_lexer -i ../fuzz/corpus -o ./findings +./fuzz_lexer -i ../tools/fuzz/corpus -o ./findings ``` diff --git a/tools/fuzz/README.md b/tools/fuzz/README.md index 597e0c2..a184d02 100644 --- a/tools/fuzz/README.md +++ b/tools/fuzz/README.md @@ -8,10 +8,10 @@ cmake -DENABLE_FUZZ=ON .. make fuzz_lexer ``` -Provide a seed corpus in `fuzz/corpus` and run the fuzzer: +Provide a seed corpus in `corpus` and run the fuzzer: ```bash -./fuzz_lexer -i ../fuzz/corpus -o ./findings +./fuzz_lexer -i ../tools/fuzz/corpus -o ./findings ``` Crashes will be written to the `findings` directory for investigation. diff --git a/tools/fuzz/corpus/seed1.ouro b/tools/fuzz/corpus/seed1.ouro new file mode 100644 index 0000000..db91339 --- /dev/null +++ b/tools/fuzz/corpus/seed1.ouro @@ -0,0 +1 @@ +let x = 1;