- Added netconf to fuzz
- Restconf internal start more robust - Restconf fcgi fix
This commit is contained in:
parent
55377786c1
commit
47141089c2
11 changed files with 162 additions and 16 deletions
30
fuzz/netconf/README.md
Normal file
30
fuzz/netconf/README.md
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
# Clixon fuzzing
|
||||
|
||||
This dir contains code for fuzzing clixon netconf.
|
||||
|
||||
## Prereqs
|
||||
|
||||
Install AFL, see [..](..)
|
||||
|
||||
Build and install a clixon system (in particular the backend, the netconf will be replaced)
|
||||
|
||||
## Build
|
||||
|
||||
Build clixon netconf statically with the afl-clang compiler:
|
||||
```
|
||||
CC=/usr/bin/afl-clang-fast LINKAGE=static ./configure # Dont care about restconf
|
||||
make clean
|
||||
cd apps/netconf
|
||||
make clixon_netconf
|
||||
sudo make install
|
||||
```
|
||||
|
||||
## Run tests
|
||||
|
||||
Run the script `runfuzz.sh` to run one test with a cli spec and an input string, eg:
|
||||
```
|
||||
./runfuzz.sh
|
||||
```
|
||||
|
||||
After (or during) the test, investigate results in the output dir.
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue