Moved fuzz dir to test/fuzz
Extended contributing document to testing and licensing
This commit is contained in:
parent
edbbb43e1f
commit
8ede8a87b2
29 changed files with 62 additions and 1053 deletions
37
test/fuzz/backend/README.md
Normal file
37
test/fuzz/backend/README.md
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
# Clixon fuzzing
|
||||
|
||||
This dir contains code for fuzzing clixon backend. (NOTE DOES NOT WORK)
|
||||
|
||||
It requires the preeny package to change sockets to stdio.
|
||||
|
||||
Plugins do not work
|
||||
|
||||
## Prereqs
|
||||
|
||||
Install AFL and preeny, see [..](..)
|
||||
|
||||
## Build
|
||||
|
||||
Make a modification to how Clixon sends internal messages in `include/clixon_custom.h`:
|
||||
```
|
||||
#define CLIXON_PROTO_PLAIN
|
||||
```
|
||||
(Note this is obsolete)
|
||||
|
||||
Build clixon statically with the afl-clang compiler:
|
||||
```
|
||||
CC=/usr/bin/afl-clang-fast LINKAGE=static ./configure --with-restconf=evhtp
|
||||
make clean
|
||||
make
|
||||
sudo make install
|
||||
```
|
||||
|
||||
## Run tests
|
||||
|
||||
Populate the input/ dir with input usecases, there are two examples already in this dir that can be modified.
|
||||
Use the script `runfuzz.sh` to run one test:
|
||||
```
|
||||
./runfuzz.sh
|
||||
```
|
||||
|
||||
After (or during) the test, investigate results in the output dir.
|
||||
Loading…
Add table
Add a link
Reference in a new issue