- clang (version 6.0 or above comes with libFuzzer)
- cMake
- Ubuntu 18.04 LTS
-
clone this repository
-
follow instructions in cJSON folder on how to install / build the library using cMake/make
-
if needed, run the command below to refresh library cache after installing/building cJSON
sudo ldconfig
- build the executable (default called ./a.out in build directory) using the following command
clang++ -g -fsanitize=fuzzer,address libcjson.so libcjson.so.1 example.cc