clixon/test/fuzz/netconf
Olof hagsand 72a4494b69 Clixon 6.1
Reviewed documentation, changelog, etc
2023-02-19 11:35:37 +01:00
..
input Moved fuzz dir to test/fuzz 2021-10-10 18:05:45 +02:00
README.md Clixon 6.1 2023-02-19 11:35:37 +01:00
runfuzz.sh * Fixed: [State XML validation error when CLICON_MODULE_LIBRARY_RFC7895=true and ietf-yang-libra$ 2023-02-12 16:19:27 +01:00
xml.dict Moved fuzz dir to test/fuzz 2021-10-10 18:05:45 +02:00

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 lib
  make
  sudo make install
  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.