-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fuzz cairo compiled programs (#1236)
* Create fuzzer * Remove cli * Update fuzzer * Change fuzzer name * Move functions to utils; Create new fuzzer * Remove file and update readme * Change filename * Fix filenames * delete extra changes * Move to fuzzing dir * update and refactor cairo compiled programs fuzzer * fmt * add cairo_programs folder * fix warnings * fix formatting * add felt arbitrary * add felt arbitrary * add info to readme * add fuzzer makefile command * fix corrections --------- Co-authored-by: Juanma <juanma@Juanmas-MacBook-Air.local> Co-authored-by: dafifynn <slimbieber@gmail.com> Co-authored-by: Pedro Fontana <fontana.pedro93@gmail.com>
- Loading branch information
1 parent
b232d69
commit c73b728
Showing
5 changed files
with
559 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
## fuzz_json | ||
This fuzzer creates a json file directly from bytes. | ||
`HFUZZ_RUN_ARGS="--dict=json.dict" cargo hfuzz run fuzz_json` | ||
|
||
## cairo_compiled_programs_fuzzer | ||
To run this fuzzer you need to be able to run cairo-compile command from the fuzzer folder beforehand. | ||
|
||
To run the fuzzer you need to have installed `cargo-fuzz`. If not, use the command `cargo +nightly install cargo-fuzz` | ||
|
||
To run simply use `cargo +nightly fuzz run --fuzz-dir . cairo_compiled_programs_fuzzer` | ||
|
||
We use nightly for this fuzzer because cargo fuzz runs with the -Z flag, which only works with +nightly. |
Empty file.
Oops, something went wrong.
c73b728
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible performance regression was detected for benchmark.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold
1.30
.add_u64_with_felt/1
3
ns/iter (± 0
)2
ns/iter (± 0
)1.50
add_u64_with_felt/2
3
ns/iter (± 0
)2
ns/iter (± 0
)1.50
add_u64_with_felt/3
2
ns/iter (± 0
)1
ns/iter (± 0
)2
add_u64_with_felt/4
2
ns/iter (± 0
)1
ns/iter (± 0
)2
add_u64_with_felt/5
2
ns/iter (± 0
)1
ns/iter (± 0
)2
add_u64_with_felt/6
4
ns/iter (± 0
)2
ns/iter (± 0
)2
add_u64_with_felt/7
4
ns/iter (± 0
)2
ns/iter (± 0
)2
add_u64_with_felt/8
3
ns/iter (± 0
)2
ns/iter (± 0
)1.50
This comment was automatically generated by workflow using github-action-benchmark.
CC: @unbalancedparentheses