README.md (689B)
1 # Matrix-sdk Fuzzing 2 3 ## How to run 4 5 First you need to install the required binary: 6 7 ``` 8 cargo install afl 9 ``` 10 11 After that the binary needs to be compiled. AFL needs extra flags so you should do it this way: 12 13 ``` 14 cargo afl build 15 ``` 16 17 In case you want to run another fuzz target add `--bin <target binary name>` to compile it. 18 19 After that you can start fuzzing by doing: 20 21 ``` 22 cargo afl fuzz -i in/main -o out target/debug/matrix-rust-sdk-fuzz-target 23 ``` 24 25 To run other fuzzers make sure to change the in accordingly and use a different out folder. Also remember to use the correct binary. 26 27 ## Learn more 28 29 Check out https://rust-fuzz.github.io/book/afl/tutorial.html for some more information