Skip to content

Latest commit

 

History

History

fuzzer

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

diff_fuzzer

To run the diff fuzzer on various cairo hints, go to the root of the project and run make fuzzer-deps if you haven't before, this should only be run once. Then, you can call make fuzzer-run-hint-diff to run the fuzzer. For more documentaion, check out the diff_fuzzer README