pull in fuzzers, add CI scripts later

Conflicts:
	ChangeLog
This commit is contained in:
Chris Wolfe
2018-02-05 19:24:51 -06:00
committed by Eric Haszlakiewicz
parent d222b13758
commit 33e166a685
4 changed files with 67 additions and 0 deletions

View File

@@ -0,0 +1,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;
}