Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,23 @@ All tests can be run via CTest. Make sure the build is up to date.

- `ctest --test-dir build/debug --output-on-failure`
- to filter tests use `-R <regex>`

## Fuzzing

The fuzzer compares an external EVMC-compatible VM against evmone (the reference).

### Run fuzzer with seed corpus

```bash
EVMONE_EXTERNAL_OPTIONS=<path_to_external_vm.so> ./build/bin/evmone-fuzzer test/fuzzer/corpus/
```

### Reproduce a single crash file

```bash
EVMONE_EXTERNAL_OPTIONS=<path_to_external_vm.so> ./build/bin/evmone-fuzzer crash_files/<crash_file>
```

### Seed corpus

The seed corpus lives in `test/fuzzer/corpus/`. Each seed file name describes the EVM opcodes it exercises (e.g. `seed_sstore_sload.bin`, `seed_call_return.bin`).
Binary file added test/fuzzer/corpus/seed_add_mul_div.bin
Binary file not shown.
Binary file added test/fuzzer/corpus/seed_add_tangerine.bin
Binary file not shown.
Binary file added test/fuzzer/corpus/seed_addmod_mulmod.bin
Binary file not shown.
Binary file not shown.
Binary file added test/fuzzer/corpus/seed_and_or_xor_shl_shr.bin
Binary file not shown.
Binary file added test/fuzzer/corpus/seed_blockhash.bin
Binary file not shown.
Binary file added test/fuzzer/corpus/seed_byte_swap.bin
Binary file not shown.
Binary file added test/fuzzer/corpus/seed_call_return.bin
Binary file not shown.
Binary file added test/fuzzer/corpus/seed_call_zero_all.bin
Binary file not shown.
Binary file added test/fuzzer/corpus/seed_call_zero_value.bin
Binary file not shown.
Binary file added test/fuzzer/corpus/seed_callcode.bin
Binary file not shown.
Binary file added test/fuzzer/corpus/seed_calldataload_dispatcher.bin
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added test/fuzzer/corpus/seed_codesize_codecopy.bin
Binary file not shown.
Binary file added test/fuzzer/corpus/seed_difficulty_xor.bin
Binary file not shown.
Binary file added test/fuzzer/corpus/seed_dup_swap_add.bin
Binary file not shown.
Binary file added test/fuzzer/corpus/seed_empty_code.bin
Binary file not shown.
Binary file added test/fuzzer/corpus/seed_empty_large_input.bin
Binary file not shown.
Binary file added test/fuzzer/corpus/seed_exp.bin
Binary file not shown.
Binary file added test/fuzzer/corpus/seed_extcodecopy.bin
Binary file not shown.
Binary file added test/fuzzer/corpus/seed_extcodesize_extcodehash.bin
Binary file not shown.
Binary file added test/fuzzer/corpus/seed_invalid_sload_sstore.bin
Binary file not shown.
Binary file added test/fuzzer/corpus/seed_invalid_with_input.bin
Binary file not shown.
Binary file added test/fuzzer/corpus/seed_jumpi_jumpdest.bin
Binary file not shown.
Binary file added test/fuzzer/corpus/seed_loop_jumpdest.bin
Binary file not shown.
Binary file added test/fuzzer/corpus/seed_lt_gt_eq_iszero.bin
Binary file not shown.
Binary file added test/fuzzer/corpus/seed_mstore8_multi.bin
Binary file not shown.
Binary file added test/fuzzer/corpus/seed_mstore8_storage.bin
Binary file not shown.
Binary file added test/fuzzer/corpus/seed_mstore_large_offset.bin
Binary file not shown.
Binary file added test/fuzzer/corpus/seed_mstore_log0.bin
Binary file not shown.
Binary file added test/fuzzer/corpus/seed_mstore_log2.bin
Binary file not shown.
Binary file added test/fuzzer/corpus/seed_mstore_mload_chain.bin
Binary file not shown.
Binary file added test/fuzzer/corpus/seed_mstore_mload_sstore.bin
Binary file not shown.
Binary file added test/fuzzer/corpus/seed_mstore_return_shanghai.bin
Binary file not shown.
Binary file added test/fuzzer/corpus/seed_mstore_return_simple.bin
Binary file not shown.
Binary file added test/fuzzer/corpus/seed_mstore_revert.bin
Binary file not shown.
Binary file added test/fuzzer/corpus/seed_mstore_sha3.bin
Binary file not shown.
Binary file not shown.
Binary file added test/fuzzer/corpus/seed_pc_msize_gas.bin
Binary file not shown.
Binary file added test/fuzzer/corpus/seed_push0_mstore.bin
Binary file not shown.
Binary file added test/fuzzer/corpus/seed_push14_sload.bin
Binary file not shown.
Binary file added test/fuzzer/corpus/seed_push17_with_input.bin
Binary file not shown.
Binary file added test/fuzzer/corpus/seed_signextend.bin
Binary file not shown.
Binary file added test/fuzzer/corpus/seed_signextend_slt_sgt.bin
Binary file not shown.
Binary file added test/fuzzer/corpus/seed_signextend_swap_shr.bin
Binary file not shown.
Binary file added test/fuzzer/corpus/seed_sstore_sload.bin
Binary file not shown.
Binary file added test/fuzzer/corpus/seed_sstore_sload_add.bin
Binary file not shown.
Binary file added test/fuzzer/corpus/seed_staticcall_cancun.bin
Binary file not shown.
Binary file not shown.