- 10 Sep, 2018 4 commits
-
-
Minmin Gong authored
-
Milo Yip authored
Fix the compiling problems in VS
-
Milo Yip authored
Guard against min/max being macros in reader.h
-
Milo Yip authored
Handle non-throwing exception specifications that can still throw #1280
-
- 05 Aug, 2018 2 commits
-
-
Milo Yip authored
Wrap all WriteXxx() calls within EndValue()
-
Lele Gaifax authored
-
- 03 Aug, 2018 2 commits
-
-
Lele Gaifax authored
-
Lele Gaifax authored
This attempts to fix issue #1336.
-
- 01 Aug, 2018 2 commits
- 31 Jul, 2018 2 commits
-
-
IceTrailer authored
-
Veselin Georgiev authored
Update RAPIDJSON_ALIGN() to always align on an 8-byte boundary unless otherwise overridden. On some platforms (such as ARM), 64-bit items (such as doubles and 64-bit integers) must be aligned to an 8 byte address, even though the architecture is only 32-bits. On these platforms, MemoryPoolAllocator must match the malloc() behavior and return a 8 byte aligned allocation. This eliminates any alignment issues that may occur at the expense of additional memory overhead. Failure to do so caused a SIGBUS signal when calling GenericValue::SetNull(). The size of the data_ member of the GenericValue class is 16 bytes in 32-bit mode and its constructor requires an 8-byte aligned access. While parsing a JSON formatted string using Document::ParseStream(), a stack object containing GenericValue items was constructed. Since the stack was 8-byte aligned, the constructor calls would succeed. When the lifetime of the object ends, SetObjectRaw() is invoked. This triggered an allocation with 4-byte alignment to which the previously 8-byte aligned GenericValue array was copied. After this, any call to a GenericValue API that triggered the constructor and thus the placement new operation on the Data type member would trigger a SIGBUS. Signed-off-by: Veselin Georgiev <veselin.georgiev@garmin.com> Signed-off-by: Joshua Watt <Joshua.Watt@garmin.com>
-
- 17 Jul, 2018 1 commit
-
-
Minmin Gong authored
-
- 16 Jul, 2018 1 commit
-
-
Milo Yip authored
Fix warnings/errors on GCC 7/8 (-Wclass-memaccess, -Wsign-conversion, -Wformat-overflow)
-
- 15 Jul, 2018 3 commits
-
-
Philipp A Hartmann authored
GCC 7 and later warn about overflow/truncation when using sprintf and related functions with fixed-size buffers. Suppress the warning in schematest.cpp.
-
Philipp A Hartmann authored
GCC 8 (incorrectly) warns about sign conversions in (constant) array size expressions: error: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Werror=sign-conversion] char schemaBuffer_[128 * 1024]; Make these expressions unsigned by adding a 'u' suffix to the first operands.
-
Philipp A Hartmann authored
Recent GCC versions warn about using memcpy/memmove to write to a class pointer (-Wclass-memaccess). Avoid the warnings by casting to void* first. Closes #1086. Closes #1205. Closes #1246.
-
- 12 Jul, 2018 2 commits
-
-
Milo Yip authored
Removing always true if condition
-
Yolan Romailler authored
-
- 10 Jul, 2018 1 commit
-
-
Christopher Warrington authored
Sometimes, particularly when Microsoft's windows.h is included, min/max are defined as macros, interfering with use of std::numeric_limits::min() and the like. To guard against this, the function name is wrapped in an extra set of parenthesis, which inhibits function-style macro expansion. This is a similar commit to 6e38649e, but fixes uses of std::numeric_limits added after that commit, like those introduced in 2ea43433.
-
- 03 Jul, 2018 3 commits
-
-
Milo Yip authored
Detect C++11 features for Developer Studio
-
Erik Froseth authored
This patch enables various C++11 features if the code is compiled with Developer Studio compiler version 5.14 or higher.
-
Milo Yip authored
Rename a few internal preprocessor macros to avoid naming conflicts
-
- 02 Jul, 2018 2 commits
-
-
Tim Miller authored
-
Romain Moret authored
-
- 19 Jun, 2018 1 commit
-
-
Milo Yip authored
Unit Test: Parsing "128.74836467836484838364836483643636483648e-336" causes a crash
-
- 18 Jun, 2018 1 commit
-
-
Milo Yip authored
Unit Test: Parsing "0e100" in full precision mode causes UB
-
- 17 Jun, 2018 1 commit
-
-
Milo Yip authored
Fix strtod
-
- 16 Jun, 2018 7 commits
- 15 Jun, 2018 5 commits