mirror of
https://github.com/fluencelabs/parity-wasm
synced 2025-07-03 16:41:59 +00:00
add fuzzing instructions to README
This commit is contained in:
@ -29,6 +29,14 @@ Interpreter and decoder supports full wabt testsuite (https://github.com/WebAsse
|
|||||||
- checkout with submodules (`git submodule update --init --recurive`)
|
- checkout with submodules (`git submodule update --init --recurive`)
|
||||||
- run `cargo test --release --manifest-path=spec/Cargo.toml`
|
- run `cargo test --release --manifest-path=spec/Cargo.toml`
|
||||||
|
|
||||||
|
Decoder can be fuzzed with `cargo-fuzz` using `wasm-opt` (https://githib.com/WebAssembly/binaryen):
|
||||||
|
|
||||||
|
- make sure you have all prerequisites to build `binaryen` and `cargo-fuzz` (`cmake` and a C++11 toolchain)
|
||||||
|
- checkout with submodules (`git submodule update --init --recursive`)
|
||||||
|
- install `cargo fuzz` subcommand with `cargo install cargo-fuzz`
|
||||||
|
- set rustup to use a nightly toolchain, because `cargo fuzz` uses a rust compiler plugin: `rustup override set nightly`
|
||||||
|
- run `cargo fuzz run deserialize`
|
||||||
|
|
||||||
# License
|
# License
|
||||||
|
|
||||||
`parity-wasm` is primarily distributed under the terms of both the MIT
|
`parity-wasm` is primarily distributed under the terms of both the MIT
|
||||||
|
Reference in New Issue
Block a user