From 1a7defaa69cf32002d5434bb3ba297c7c218c760 Mon Sep 17 00:00:00 2001 From: Robert Pang Date: Tue, 5 Sep 2023 13:58:51 -0700 Subject: [PATCH] Fix variable and API names in tokener_parse_ex_fuzzer.cc to resolve build issue. --- fuzz/tokener_parse_ex_fuzzer.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fuzz/tokener_parse_ex_fuzzer.cc b/fuzz/tokener_parse_ex_fuzzer.cc index f058e0fb..acdc3327 100644 --- a/fuzz/tokener_parse_ex_fuzzer.cc +++ b/fuzz/tokener_parse_ex_fuzzer.cc @@ -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); -- 2.39.5