xref: /llvm-project/libc/docs/dev/fuzzing.rst (revision 54faf22f7b947464a070669711100211e87f3ea8)
1Fuzzing for LLVM-libc functions
2===============================
3
4Fuzz tests are used to ensure quality and security of LLVM-libc implementations.
5All fuzz tests live under the directory named ``fuzzing``. Within this
6directory, the fuzz test for a libc function lives in the same nested directory
7as its implementation in the toplevel ``src`` directory. The build target
8``libc-fuzzer`` builds all of the enabled fuzz tests (but does not run them).
9
10Types of fuzz tests
11===================
12
13As of this writing, there are two different kinds of fuzz tests. One kind are
14the traditional fuzz tests which test one function at a time and only that
15particular function. The other kind of tests are what we call as the
16differential fuzz tests. These tests compare the behavior of LLVM libc
17implementations with the behavior of the corresponding functions from the system
18libc.
19