Add a simple fuzz test for jsoncpp.

This commit is contained in:
Autofuzz team
2019-06-12 16:02:05 +02:00
committed by Jordan Bayles
parent 629a727b5f
commit 786851819e
5 changed files with 81 additions and 0 deletions

14
src/test_lib_json/fuzz.h Normal file
View File

@@ -0,0 +1,14 @@
// Copyright 2007-2010 The JsonCpp Authors
// Distributed under MIT license, or public domain if desired and
// recognized in your jurisdiction.
// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
#ifndef FUZZ_H_INCLUDED
#define FUZZ_H_INCLUDED
#include <stddef.h>
#include <stdint.h>
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size);
#endif // ifndef FUZZ_H_INCLUDED