add fuzzing instructions

This commit is contained in:
Brendan Hansknecht 2024-07-26 00:59:26 -07:00
parent a0dd18b0fc
commit 6ef44a22c8
No known key found for this signature in database
GPG key ID: 0EA784685083E75B

View file

@ -1,3 +1,10 @@
/// Sort Fuzzer!
/// To fuzz: On linux, first install afl++.
/// Then build this with:
/// zig build-lib -static -fcompiler-rt -flto -fPIC src/fuzz_sort.zig
/// afl-clang-lto -o fuzz libfuzz_sort.a
/// Finally, run with afl
/// afl-fuzz -i input -o output -- ./fuzz
const std = @import("std");
const sort = @import("sort.zig");