forked from hyperledger/besu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EOF Differential Layout Fuzzer (hyperledger#7488)
Differential EOF Layout Fuzzer guided by Besu's layout parser. Signed-off-by: Danno Ferrin <[email protected]>
- Loading branch information
Showing
23 changed files
with
1,351 additions
and
26 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
7 changes: 7 additions & 0 deletions
7
...eum/evmtool/src/test/resources/org/hyperledger/besu/evmtool/code-validate/createdata.json
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,7 @@ | ||
{ | ||
"cli": [ | ||
"code-validate" | ||
], | ||
"stdin": "0xef0001010004020001000b0300010014040004000080000436600060ff6000ec005000ef000101000402000100010400000000800000feda7ac0de", | ||
"stdout": "OK 1/1/4\n" | ||
} |
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
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,29 @@ | ||
# BesuFuzz | ||
|
||
BesuFuzz is where all the besu guided fuzzing tools live. | ||
|
||
## eof-container | ||
|
||
Performs differential fuzzing between Ethereum clients based on | ||
the [txparse eofparse](https://github.com/holiman/txparse/blob/main/README.md#eof-parser-eofparse) | ||
format. Note that only the inital `OK` and `err` values are used to determine if | ||
there is a difference. | ||
|
||
### Prototypical CLI Usage: | ||
|
||
```shell | ||
BesuFuzz eof-container \ | ||
--tests-dir=~/git/ethereum/tests/EOFTests \ | ||
--client=evm1=evmone-eofparse \ | ||
--client=revm=revme bytecode | ||
``` | ||
|
||
### Prototypical Gradle usage: | ||
|
||
```shell | ||
./gradlew fuzzEvmone fuzzReth | ||
``` | ||
|
||
There are pre-written Gradle targets for `fuzzEthereumJS`, `fuzzEvmone`, | ||
`fuzzGeth`, `fuzzNethermind`, and `fuzzReth`. Besu is always a fuzzing target. | ||
The `fuzzAll` target will fuzz all clients. |
Oops, something went wrong.