Browse Source

Merge pull request #827 from robert-pang/master

Resolve build issue in tokener_parse_ex_fuzzer.c
tags/json-c-0.18-20240915
Eric Hawicz GitHub 2 years ago
parent
commit
4186537557
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      fuzz/tokener_parse_ex_fuzzer.cc

+ 2
- 2
fuzz/tokener_parse_ex_fuzzer.cc View File

@@ -8,11 +8,11 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
json_tokener *tok = json_tokener_new();
json_object *obj = json_tokener_parse_ex(tok, data1, size);
json_object_object_foreach(jobj, key, val) {
json_object_object_foreach(obj, key, val) {
(void)json_object_get_type(val);
(void)json_object_get_string(val);
}
(void)json_object_to_json_string(obj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_SPACED);
(void)json_object_to_json_string_ext(obj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_SPACED);
json_object_put(obj);
json_tokener_free(tok);


Loading…
Cancel
Save