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