https://github.com/agroce/deepstate-json-c
Simple harness to test JSON library
https://github.com/agroce/deepstate-json-c
Last synced: about 2 months ago
JSON representation
Simple harness to test JSON library
- Host: GitHub
- URL: https://github.com/agroce/deepstate-json-c
- Owner: agroce
- Created: 2020-12-24T16:19:27.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-06-01T10:00:07.000Z (about 2 years ago)
- Last Synced: 2025-12-28T23:57:31.039Z (6 months ago)
- Language: C++
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is used to test https://github.com/json-c/json-c
The harness can be compiled after building/installing json-c like this:
```
clang++ -o TestJSON TestJSON.cpp -ldeepstate -I/usr/local/include/json-c/ /usr/local/lib/libjson-c.a
```
or for a specific fuzzer, e.g.,:
```
deepstate-afl --compile_test TestJSON.cpp --out_test_name TestJSON --compiler_args "-I/usr/local/include/json-c/ /usr/local/lib/libjson-c.a"
```
Seeding with strings from a good JSON test suite can help fuzzers out, but you'll need to generate DeepState format files. Will add a Python script to take a set of text files and transform into strings with the length in the first four bytes soon.