mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-01-14 09:57:56 +08:00
Update fuzz.cpp
This commit is contained in:
parent
d81a3caece
commit
6d236e1948
@ -16,7 +16,7 @@ namespace Json {
|
|||||||
class Exception;
|
class Exception;
|
||||||
}
|
}
|
||||||
|
|
||||||
int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
|
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
|
||||||
Json::CharReaderBuilder builder;
|
Json::CharReaderBuilder builder;
|
||||||
|
|
||||||
if (size < sizeof(uint32_t)) {
|
if (size < sizeof(uint32_t)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user