You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

tokener_parse_ex_fuzzer.cc 337 B

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