Skip to content
  • Brad King's avatar
    jsoncpp: fix signed overflow when parsing negative value · 5751a090
    Brad King authored
    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.
    5751a090