You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This subdirectory contains some [libFuzzer](https://www.llvm.org/docs/LibFuzzer.html) fuzzing targets for WasmKit.
4
+
5
+
> [!WARNING]
6
+
> libFuzzer does not work with the latest Swift runtime library on macOS for some reason. Run the fuzzing targets on Linux for now.
7
+
8
+
## Requirements
9
+
10
+
-[Open Source Swift Toolchain](https://swift.org/install) - Xcode toolchain does not contain fuzzing supoort, so you need to install the open source toolchain.
11
+
-[wasm-tools](https://github.com/bytecodealliance/wasm-tools) - Required to generate random seed corpora
12
+
13
+
14
+
## Running the Fuzzing Targets
15
+
16
+
1. Generate seed corpora for the fuzzing targets:
17
+
```sh
18
+
./fuzz.py seed
19
+
```
20
+
2. Run the fuzzing targets, where `<target>` is one of the fuzzing targets available in`./Sources` directory:
21
+
```sh
22
+
./fuzz.py run <target>
23
+
```
24
+
3. Once the fuzzer finds a crash, it will generate a testcasein the `FailCases/<target>` directory.
0 commit comments