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