-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Create fuzzer * Remove cli * Update fuzzer * Change fuzzer name * Add arbitrary * Add fuzzer using arbitrary * Add fuzzer * Use run until steps * Remove end * Update changelog * Update CHANGELOG.md * Update CHANGELOG.md * Change macro cfg * Update bincode * Update Arbitrary deps * Check for std with arbitrary * Update Cargo.toml * Revert "Update bincode" This reverts commit 6b5a95a. * Revert to update bincode * Fix arbitrary imports * Run linter * Run linter --------- Co-authored-by: Juanma <juanma@Juanmas-MacBook-Air.local> Co-authored-by: Pedro Fontana <fontana.pedro93@gmail.com>
- Loading branch information
1 parent
b7ac1e8
commit 2d5b2cc
Showing
16 changed files
with
163 additions
and
4 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
use cairo_vm::{ | ||
cairo_run::{cairo_run_parsed_program, CairoRunConfig}, | ||
hint_processor::builtin_hint_processor::builtin_hint_processor_definition::BuiltinHintProcessor, | ||
types::program::Program, | ||
}; | ||
use honggfuzz::fuzz; | ||
|
||
const STEPS_LIMIT: usize = 1000000; | ||
fn main() { | ||
loop { | ||
fuzz!(|data: (CairoRunConfig, Program)| { | ||
let (cairo_config, program) = data; | ||
let _ = cairo_run_parsed_program( | ||
program.clone(), | ||
&CairoRunConfig::default(), | ||
&mut BuiltinHintProcessor::new_empty(), | ||
STEPS_LIMIT, | ||
); | ||
let _ = cairo_run_parsed_program( | ||
program, | ||
&cairo_config, | ||
&mut BuiltinHintProcessor::new_empty(), | ||
STEPS_LIMIT, | ||
); | ||
}); | ||
} | ||
} |
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
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
Oops, something went wrong.