summaryrefslogtreecommitdiffstats
path: root/Utilities/cmjsoncpp/src/lib_json/json_reader.cpp
Commit message (Collapse)AuthorAgeFilesLines
* jsoncpp: fix signed overflow when parsing negative valueBrad King2018-12-111-1/+1
| | | | | | | | | | Clang's ubsan (-fsanitize=undefined) reports: runtime error: negation of -9223372036854775808 cannot be represented in type 'Json::Value::LargestInt' (aka 'long'); cast to an unsigned type to negate this value to itself Follow its advice and update the code to remove the explicit negation.
* jsoncpp: Add initialization to pacify scanbuildBrad King2017-08-301-0/+1
| | | | | | | The scanbuild analysis cannot see that decodeUnicodeEscapeSequence either initializes the `unicode` argument or returns `false` such that the code following it runs only if `unicode` is initialized. Add an explicit initialization to pacify it.
* Merge branch 'upstream-jsoncpp' into update-jsoncppBrad King2017-08-301-127/+1306
| | | | | * upstream-jsoncpp: jsoncpp 2017-08-27 (4cfae897)
* jsoncpp: Add missing cast to convert from char to UIntMarc Chevrier2015-09-251-1/+1
| | | | | | When parsing digits we know our `c - '0'` expression results in a non-negative value due to preceding conditions. Simply cast the result to UInt. This fixes compilation on SolarisStudio 12.4.
* jsoncpp: Include C headers since we use APIs without std::Brad King2015-01-151-3/+3
|
* Merge branch 'jsoncpp-upstream' into import-jsoncppBrad King2015-01-131-0/+885
Use a subtree merge to place the upstream content in the Utilities/cmjsoncpp directory.