clixon/test/fuzz/http1
Olof hagsand d358387d39 * Fixed: [State XML validation error when CLICON_MODULE_LIBRARY_RFC7895=true and ietf-yang-libra$
* Removed obsolete option: `CLICON_MODULE_LIBRARY_RFC7895'
  * Obsolete config options given in the confi file are considered an error
* Added section in CONTRIBUTING relating to optimzation
* Changed reset merge to implicit default values.
  * This avoids a potential overwriting of explicitly set default values in the existing config
* Adapted some code to [Make cligen_* functions const ](https://github.com/clicon/cligen/pull/83)
* Test: fixed test for * Fixed: [datamodel tree generated from basemodel tree is not proper when a list has more than one key and key is of enum type](https://github.com/clicon/clixon/issues/417)
2023-02-12 16:19:27 +01:00
..
input Fuzzing of native http1 parser 2022-02-08 21:26:53 +01:00
README.md * Unit test ifdef for restconf http1 parser 2022-02-17 09:16:01 +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

Clixon http1 fuzzing

This dir contains code for fuzzing the clixon http1 parser. This is normally inside the native restconf app and need some special compiling to run stand-alone.

Install AFL, see ..

Enable RESTCONF_HTTP1_UNITTEST in include/clixon_custom.h.

Build and install clixon libraries and restconf statically

  ./configure --disable-nghttp2 LINKAGE=static INSTALLFLAGS="" CC=/usr/bin/afl-clang-fast CFLAGS="-g"
  make clean
  make
  sudo make install
  ./runfuzz.sh

To view crashes

sudo chmod o+x output/crashes
sudo chmod -R o+r output/crashes