1 #include <stdint.h> 2 3 #include <json.h> 4 LLVMFuzzerTestOneInput(const uint8_t * data,size_t size)5extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { 6 const char *data1 = reinterpret_cast<const char *>(data); 7 json_tokener *tok = json_tokener_new(); 8 json_object *obj = json_tokener_parse_ex(tok, data1, size); 9 10 json_object_put(obj); 11 json_tokener_free(tok); 12 return 0; 13 } 14