diff options
| author | Brad King <brad.king@kitware.com> | 2018-12-11 17:44:57 (GMT) |
|---|---|---|
| committer | Brad King <brad.king@kitware.com> | 2018-12-11 17:50:21 (GMT) |
| commit | 5751a09092a35554ebdd75ea0aa05c63ec414734 (patch) | |
| tree | 30281f8ae8d5b3460791c043c131e6c03e024d60 /Tests/Module/WriteCompilerDetectionHeader | |
| parent | d8c6427fa158a96a2e41f07d60c924cee94e413b (diff) | |
| download | CMake-5751a09092a35554ebdd75ea0aa05c63ec414734.zip CMake-5751a09092a35554ebdd75ea0aa05c63ec414734.tar.gz CMake-5751a09092a35554ebdd75ea0aa05c63ec414734.tar.bz2 | |
jsoncpp: fix signed overflow when parsing negative value
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.
Diffstat (limited to 'Tests/Module/WriteCompilerDetectionHeader')
0 files changed, 0 insertions, 0 deletions
