1. 14 Jun, 2016 2 commits
    • Eli Fidler's avatar
      fix undefined double to uint64_t cast · c52cec7e
      Eli Fidler authored
      note that std::numeric_limits<uint64_t>::max() and
      std::numeric_limits<int64_t>::max() aren't exactly representable in a
      double, so we need to be strictly less to be definitely lossless
      
      UBSAN gave during Value.IsLosslessDouble test:
      include/rapidjson/document.h:955:42: runtime error: value 1.84467e+19 is outside the range of representable values of type 'unsigned long'
      c52cec7e
    • Eli Fidler's avatar
      avoid signed-integer underflow, which is undefined behavior · 760ea431
      Eli Fidler authored
      maybe these tests should just be deleted?
      
      UBSAN gave:
      runtime error: signed integer overflow: -9223372036854775808 - 1 cannot be represented in type 'long'
      runtime error: signed integer overflow: -9223372036854775808 - 2 cannot be represented in type 'long'
      760ea431
  2. 13 Jun, 2016 1 commit
  3. 16 Apr, 2016 1 commit
  4. 04 Apr, 2016 1 commit
  5. 05 Mar, 2016 1 commit
  6. 04 Mar, 2016 1 commit
  7. 29 Feb, 2016 1 commit
  8. 21 Feb, 2016 2 commits
  9. 18 Feb, 2016 2 commits
  10. 15 Feb, 2016 1 commit
  11. 14 Feb, 2016 1 commit
  12. 13 Feb, 2016 4 commits
  13. 12 Feb, 2016 2 commits
  14. 06 Feb, 2016 1 commit
  15. 23 Jan, 2016 2 commits
  16. 18 Dec, 2015 5 commits
  17. 13 Jul, 2015 1 commit
  18. 21 May, 2015 1 commit
  19. 12 May, 2015 1 commit
  20. 18 Apr, 2015 1 commit
  21. 13 Apr, 2015 3 commits
  22. 10 Apr, 2015 3 commits
  23. 10 Mar, 2015 1 commit
    • Philipp A. Hartmann's avatar
      GenericValue::AddMember<T>: add missing overload (closes #254) · 06c3ddba
      Philipp A. Hartmann authored
      As discovered by @felipegb94, there are missing overloads to the
      `GenericValue::AddMember<T>` template function, taking an explicit
      `GenericValue&` as a name and accepting arbitrary primitive values.
      
      This patch adds the missing overloads. The `StringRefType` overload
      is needed to disambiguate the addition of a string literal as
      value.
      
      Some tests are added to `TEST(Value, Object)` in `valuetest.cpp`.
      06c3ddba
  24. 17 Feb, 2015 1 commit