- 25 Aug, 2016 1 commit
-
-
Milo Yip authored
Change version numbers Fixed some document linkage Fix #648
-
- 02 Aug, 2016 1 commit
-
-
Milo Yip authored
Fix builds on x32 platform.
-
- 01 Aug, 2016 2 commits
-
-
Jordi Mallach authored
From the Debian wiki: https://wiki.debian.org/X32Port X32 is an ABI for amd64/x86_64 CPUs using 32-bit integers, longs and pointers. The idea is to combine the smaller memory and cache footprint from 32-bit data types with the larger register set of x86_64. The 64-bit registers can make computation more efficient, and with 8 additional registers available, there is less pressure compared to i386/i686. rapidjson makes an incorrect assumption in a check for 64 bit platforms, and uses __LP64__ exclusively. This fix adds an additional check for __x86_64__ && __ILP32__ defines, as a very conservative fix. However, the usage of __LP64__ would be a problem for other "mixed" applications like ARM ILP32, so a better detection scheme might be needed in the future.
-
Milo Yip authored
-
- 29 Jul, 2016 2 commits
- 27 Jul, 2016 2 commits
-
-
Milo Yip authored
Add std::string overload to PrettyWriter::Key() when RAPIDJSON_HAS_STDSTRING is #defined
-
Jamie Seward authored
Only String() has the std::string overload currently.
-
- 23 Jul, 2016 1 commit
-
-
Milo Yip authored
Handle malloc() fail in PoolAllocator
-
- 21 Jul, 2016 4 commits
- 14 Jul, 2016 1 commit
-
-
fuzhufang authored
also use internal::StrLen to get the string lengtht, when it call FindMember(StringRef(name)). Now use GenericValue construct it, then can use the std::string.size. now it will be faster.
-
- 11 Jul, 2016 2 commits
-
-
Milo Yip authored
fix rapidjson::value::Get<std::string>() may returns wrong data
-
yiteng.nyt authored
Change-Id: Ia7325edb437e3039e29223d0ecc4d9c83d824bc0
-
- 02 Jul, 2016 1 commit
-
-
Milo Yip authored
Make GenericSchemaDocument constructor explicit
-
- 01 Jul, 2016 2 commits
-
-
Jason Smith authored
Prior to this change, a user could incorrectly pass a Document object to SchemaValidator. This would implicitly construct a SchemaDocument, which would then be destructed before the validator was used. This caused unpredictable results including memory corruption and program crashes.
-
Milo Yip authored
Fix buffer overrun using PutN (closes #672)
-
- 30 Jun, 2016 1 commit
-
-
Jason Smith authored
Fix inconsistent calling of template functions in PutN in stream.h. When used with a GenericStringBuffer<<UTF8>, MemoryPoolAllocator>, PutN would call PutReserve from stream.h, and PutUnsafe from stringbuffer.h. This resulted in bytes being added to the buffer without allocating space. This was not an issue when used with the default memory allocator, because in this case the specialized PutN is used from stringbuffer.h.
-
- 29 Jun, 2016 1 commit
-
-
Milo Yip authored
-
- 28 Jun, 2016 1 commit
-
-
Milo Yip authored
readertest: Suppress "dangling-else" warning on GCC 7 and later
-
- 27 Jun, 2016 3 commits
-
-
Philipp A. Hartmann authored
GCC 6.x doesn't yet support this warning flag, as reported by @ragnar-ouchterlony.
-
Milo Yip authored
Fix warnings on GCC 6 and later (closes #666)
-
Milo Yip authored
document typo fix and .gitignore update
-
- 23 Jun, 2016 1 commit
-
-
Philipp A. Hartmann authored
* document.h * suppress -Wterminate on GCC 6.x and later * simplify warning handling * schema.h * drop RAPIDJSON_NOEXCEPT from GenericSchemaDocument constructor (calls RAPIDJSON_NEW anyway) * simplify warning handling (avoids RAPIDJSON_POP mismatch on Clang) * encodingtest.cpp, istreamwrappertest.cpp * work around -Wdangling-else * readertest.cpp * suppress -Wdangling-else
-
- 15 Jun, 2016 5 commits
- 14 Jun, 2016 8 commits
-
-
Eli Fidler authored
-
Eli Fidler authored
UBSAN gave in Value.IsLosslessFloat: include/rapidjson/document.h:981:38: runtime error: value 3.40282e+38 is outside the range of representable values of type 'float'
-
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'
-
Eli Fidler authored
UBSAN gave in Regex.Unicode test: include/rapidjson/encodings.h:157:28: runtime error: shift exponent 32 is too large for 32-bit type 'int'
-
Eli Fidler authored
UBSAN gave during Reader.ParseNumber_FullPrecisionDouble test: include/rapidjson/internal/strtod.h:149:11: runtime error: shift exponent 46 is too large for 32-bit type 'int'
-
Eli Fidler authored
UBSAN gave: runtime error: division by zero
-
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'
-
Eli Fidler authored
UBSAN gave for test/unittest/itoatest.cpp:87: runtime error: signed integer overflow: 4611686018427387904 * 2 cannot be represented in type 'long'
-
- 13 Jun, 2016 1 commit
-
-
Eli Fidler authored
UBSAN on Clang/Linux gave: runtime error: null pointer passed as argument 2, which is declared to never be null /usr/include/string.h:43:45: note: nonnull attribute specified here
-