Browse Source

fuzz: add support for compiling with c++ compiler

pull/400/head
Randy 5 years ago
parent
commit
73b0e739d0
  1. 8
      fuzzing/cjson_read_fuzzer.c

8
fuzzing/cjson_read_fuzzer.c

@ -2,6 +2,10 @@
#include <stdint.h>
#include <string.h>
#ifdef __cplusplus
extern "C" {
#endif
#include "../cJSON.h"
int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size); /* required by C89 */
@ -66,3 +70,7 @@ int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
return 0;
}
#ifdef __cplusplus
}
#endif
Loading…
Cancel
Save