- 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 11 commits
-
-
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
-
Eli Fidler authored
UBSAN gave issues with the typeless Schema: runtime error: reference binding to null pointer of type 'rapidjson::GenericSchemaDocument<rapidjson::GenericValue<rapidjson::UTF16<wchar_t>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator> >, rapidjson::CrtAllocator>' and runtime error: member access within null pointer of type 'AllocatorType' (aka 'rapidjson::CrtAllocator')
-
Eli Fidler authored
UBSAN gave "runtime error: index 13 out of bounds for type 'const uint32_t [10]'"
-
Eli Fidler authored
specifically, "expression with side effects has no effect in an unevaluated context"
-
Eli Fidler authored
clang advises: "note: silence by adding parentheses to mark code as explicitly dead"
-
Eli Fidler authored
-
Eli Fidler authored
-
Eli Fidler authored
-
Milo Yip authored
-
Milo Yip authored
-
Milo Yip authored
switch Clang from broken Ubuntu PPA to upstream binary release
-
- 10 Jun, 2016 3 commits
-
-
Eli Fidler authored
This should fix the Travis clang builds, since the upstream LLVM apt repo is down.
-
Milo Yip authored
npm docs
-
Milo Yip authored
Fix cmake build with new gtest reference
-