jsoncpp
jsoncpp copied to clipboard
A C++ library for interacting with JSON.
**Describe the bug** A clear and concise description of what the bug is. hello!I used the jsoncpp 1.7.4 library to execute the following code, but this code does not contain...
**Describe the bug** ==2620602==WARNING: MemorySanitizer: use-of-uninitialized-value FUNCTIONSTARTstd::_Rb_tree::_M_lower_bound(std::_Rb_tree_node*, std::_Rb_tree_node_base*, Json::Value::CZString const&)FUNCTIONEND----LOCATIONSTART/usr/lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/stl_tree.h:1933:7LOCATIONEND----FRAMESTART0FRAMEEND FUNCTIONSTARTstd::_Rb_tree::lower_bound(Json::Value::CZString const&)FUNCTIONEND----LOCATIONSTART/usr/lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/stl_tree.h:1287:16LOCATIONEND----FRAMESTART1FRAMEEND FUNCTIONSTARTstd::map::lower_bound(Json::Value::CZString const&)FUNCTIONEND----LOCATIONSTART/usr/lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/stl_map.h:1258:21LOCATIONEND----FRAMESTART2FRAMEEND FUNCTIONSTARTJson::Value::resolveReference(char const*, char const*)FUNCTIONEND----LOCATIONSTARTout_jsoncpp/CRASHMSAN/repo/src/lib_json/json_value.cpp:1099:26LOCATIONEND----FRAMESTART3FRAMEEND FUNCTIONSTARTJson::Value::operator[](char const*)FUNCTIONEND----LOCATIONSTARTout_jsoncpp/CRASHMSAN/repo/src/lib_json/json_value.cpp:1201:10LOCATIONEND----FRAMESTART4FRAMEEND FUNCTIONSTARTJson::CharReaderBuilder::setDefaults(Json::Value*)FUNCTIONEND----LOCATIONSTARTout_jsoncpp/CRASHMSAN/repo/src/lib_json/json_reader.cpp:1940:3LOCATIONEND----FRAMESTART5FRAMEEND FUNCTIONSTARTJson::CharReaderBuilder::CharReaderBuilder()FUNCTIONEND----LOCATIONSTARTout_jsoncpp/CRASHMSAN/repo/src/lib_json/json_reader.cpp:1867:42LOCATIONEND----FRAMESTART6FRAMEEND FUNCTIONSTARTLLVMFuzzerTestOneInputFUNCTIONEND----LOCATIONSTARTout_jsoncpp/CRASHMSAN/repo/build/../src/test_lib_json/fuzz.cpp:19:27LOCATIONEND----FRAMESTART7FRAMEEND FUNCTIONSTARTmainFUNCTIONEND----LOCATIONSTARTout_jsoncpp/CRASHMSAN/repo/build/../standaloneengine.cc:50:11LOCATIONEND----FRAMESTART8FRAMEEND FUNCTIONSTART__libc_start_mainFUNCTIONEND----LOCATIONSTART/build/glibc-B3wQXB/glibc-2.31/csu/../csu/libc-start.c:308:16LOCATIONEND----FRAMESTART9FRAMEEND FUNCTIONSTART_startFUNCTIONEND----LOCATIONSTARTLOCATIONEND----FRAMESTART10FRAMEEND Uninitialized value was created...
Hi, there is a potential bug in `Json::Reader::parse` where it stores dangling pointers to the string, read back during `getFormattedErrorMessages`. This bug was reproduced on https://github.com/open-source-parsers/jsoncpp/commit/ca98c98457b1163cca1f7d8db62827c115fec6d1. ### Description When invoking...
**Describe the bug** bad foreach cycle for arrayValue **To Reproduce** ``` Json::Value j; j["version"] = "1.0.0"; j["name"] = "arch"; j["arr"] = Json::arrayValue; j["arr"][5] = "Hello, World!"; for (auto it :...
Hi! I was reading the readme and noticed that there's three kind of versions: - `1.y.z` which i guess is the master branch - `0.y.z` which has its own branch...
Fixes #1616 Add support for controlling the precision of JSON string output through parameters, including two modes: decimal places and significant figures.
Problem Description The current toStyledString method uses a default StreamWriterBuilder, which has the following limitations: Users cannot customize the output format, lacking flexibility For decimal-type data, there is no convenient...
The clang-tidy argument `AnalyzeTemporaryDtors` was deprecated in clang 16 and removed in 18 per https://github.com/llvm/llvm-project/issues/62020 . If running with this still present after v18, clang-tidy will error out with unknown...