11diff --git a/src/lib_json/json_value.cpp b/src/lib_json/json_value.cpp
2- index aa2b744..c3620a5 100644
2+ index 168251e..0ce4ab7 100644
33--- a/src/lib_json/json_value.cpp
44+++ b/src/lib_json/json_value.cpp
5- @@ -212 ,13 +212 ,17 @@ JSONCPP_NORETURN void throwLogicError(String const& msg) {
5+ @@ -214 ,13 +214 ,17 @@ JSONCPP_NORETURN void throwLogicError(String const& msg) {
66 throw LogicError(msg);
77 }
88 #else // !JSON_USE_EXCEPTION
@@ -23,28 +23,21 @@ index aa2b744..c3620a5 100644
2323 #endif
2424
2525diff --git a/src/test_lib_json/fuzz.cpp b/src/test_lib_json/fuzz.cpp
26- index 5b75c22 ..8367d3b 100644
26+ index 3679a95 ..8367d3b 100644
2727--- a/src/test_lib_json/fuzz.cpp
2828+++ b/src/test_lib_json/fuzz.cpp
29- @@ -11,10 +11,6 @@
30- #include <memory>
31- #include <string>
32-
33- - namespace Json {
34- - class Exception;
35- - }
36- -
37- extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
38- Json::CharReaderBuilder builder;
39-
40- @@ -45,10 +41,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
29+ @@ -41,14 +41,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
4130
4231 Json::Value root;
4332 const auto data_str = reinterpret_cast<const char*>(data);
33+ - #if JSON_USE_EXCEPTION
4434- try {
35+ - #endif // JSON_USE_EXCEPTION
4536- reader->parse(data_str, data_str + size, &root, nullptr);
37+ - #if JSON_USE_EXCEPTION
4638- } catch (Json::Exception const&) {
4739- }
40+ - #endif // JSON_USE_EXCEPTION
4841+ reader->parse(data_str, data_str + size, &root, nullptr);
4942 // Whether it succeeded or not doesn't matter.
5043 return 0;
0 commit comments