diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-05-29 12:05:42 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-05-29 12:08:45 +0200 |
commit | 7562679b45a00c0fe95d444b06897913e09bfdaa (patch) | |
tree | 5e3011555f3f5844c4d4b081aa610b75edb8602c /sapi/fuzzer/fuzzer-json.c | |
parent | 7aa8c7e6aa810ee0f52225c3a627d81443602ac7 (diff) | |
download | php-git-7562679b45a00c0fe95d444b06897913e09bfdaa.tar.gz |
Remove json checks in fuzzer SAPI
JSON is now always enabled
Diffstat (limited to 'sapi/fuzzer/fuzzer-json.c')
-rw-r--r-- | sapi/fuzzer/fuzzer-json.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/sapi/fuzzer/fuzzer-json.c b/sapi/fuzzer/fuzzer-json.c index 45ec78ae4c..85fa8bbc8e 100644 --- a/sapi/fuzzer/fuzzer-json.c +++ b/sapi/fuzzer/fuzzer-json.c @@ -28,13 +28,9 @@ #include <stdlib.h> #include "fuzzer-sapi.h" - -#ifdef HAVE_JSON #include "ext/json/php_json_parser.h" -#endif int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { -#ifdef HAVE_JSON char *data = malloc(Size+1); memcpy(data, Data, Size); data[Size] = '\0'; @@ -55,10 +51,6 @@ int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { php_request_shutdown(NULL); free(data); -#else - fprintf(stderr, "\n\nERROR:\nPHP built without JSON, recompile with --enable-json to use this fuzzer\n"); - exit(1); -#endif return 0; } |