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