2283 Commits

Author SHA1 Message Date
bogaotory
fa98b5b4b6 in relation to solving issue #784, this commit enables the schema to recognise the "default" property, and avoids a missing property error when a default is given in the schema 2018-06-01 11:07:53 +01:00
Milo Yip
af223d44f4
Merge pull request #1261 from fmalita/exponent-underflow
Prevent int underflow when parsing exponents
2018-05-20 13:42:13 +08:00
Florin Malita
8269bc2bc2 Prevent int underflow when parsing exponents
When parsing negative exponents, the current implementation takes
precautions for |exp| to not underflow int.

But that is not sufficient: later on [1], |exp + expFrac| is also
stored to an int - so we must ensure that the sum stays within int
representable values.

Update the exp clamping logic to take expFrac into account.

[1] https://github.com/Tencent/rapidjson/blob/master/include/rapidjson/reader.h#L1690
2018-05-15 22:48:07 -04:00
John Stiles
1329cdecce Added test for issue #1251 2018-05-11 15:57:11 -07:00
John Stiles
cad3805737
Update readertest.cpp 2018-05-11 15:19:11 -07:00
John Stiles
f7d2cd2228 added test for parsing 0e100 2018-05-11 15:16:46 -07:00
John Stiles
532cba1422
Merge pull request #4 from Tencent/master
Merge
2018-05-11 14:26:21 -07:00
Milo Yip
a091035846
Merge pull request #1240 from ksergey/FIX_Reader
Added const for Reader methods
2018-05-04 10:11:59 +08:00
Sergey Kovalevich
d0a78bf56e Added const for Reader methods 2018-05-03 15:11:16 +03:00
Milo Yip
b32cd9421c
Merge pull request #1217 from tresorit/win-clang-fix
Fix compilation on windows with clang
2018-04-25 10:13:55 +08:00
Milo Yip
ed72564e31
Merge pull request #1231 from steveire/patch-1
Use rvalue refs with clang-cl
2018-04-25 10:13:19 +08:00
Stephen Kelly
73b8774ab1
Use rvalue refs with clang-cl 2018-04-24 22:55:47 +01:00
Milo Yip
5fd779d91f
Merge pull request #1222 from DynonAvionics/adjustable_default_chunk_capacity
Allow user configuration of default chunk capacity.
2018-04-18 11:35:00 +08:00
Ryan Morris
6f587466a1 Added macro RAPIDJSON_ALLOCATOR_DEFAULT_CHUNK_CAPACITY to allow default chunk capacity to be lowered for embedded devices with < 64k stack sizes 2018-04-17 12:53:23 -07:00
Zoltan Kovago
0fdd8040ce fix compilation on windows with clang 2018-04-09 15:47:17 +02:00
Milo Yip
8022a5f79c
Merge pull request #1210 from foxtacles/fix-missing-remote-ref-p
add remote ref pointer to schemaMap_
2018-03-27 10:37:09 +08:00
Christian Semmler
9640209f78 remove superfluous typename 2018-03-26 13:29:52 +02:00
Christian Semmler
f8c8c32b42 fix C++03 compatibility 2018-03-26 13:16:31 +02:00
Christian Semmler
c8530d022f add test case for remote ref issue 2018-03-26 13:04:35 +02:00
Christian Semmler
8a6c345bcc add remote ref to schemaMap_ 2018-03-23 23:33:20 +01:00
Milo Yip
67a17cfdbc
Merge pull request #1207 from vim2meta/master
Ensure a preprocessor directive is only applied to MSVC.
2018-03-20 14:46:33 +08:00
John
de6681e295 ensure the pragma is only applied to MSVC 2018-03-19 15:18:08 -04:00
Milo Yip
f0177eb936
Merge pull request #1203 from KuangLei/doc_AddingWriter
Adding a few missing includes in the doc
2018-03-17 00:01:42 +08:00
KLsz
f9c9339761 Adding a few missing includes 2018-03-16 23:50:17 +08:00
Milo Yip
0f96b5605a
Merge pull request #1202 from Sumoren/msc_long_part2
Change long/ulong as int/uint on MSC unit tests to be more inline wit…
2018-03-15 10:10:58 +08:00
MaximeBF
27424d5c09 Change long/ulong as int/uint on MSC unit tests to be more inline with other templated functions unit tests 2018-03-14 08:44:00 -04:00
Milo Yip
d79533c65a
Merge pull request #1199 from kachanovskiy/master
Fixes #1198
2018-03-13 10:43:18 +08:00
sergey kachanovskiy
2e5dcceda0 Fixes #1198 2018-03-12 16:11:09 +01:00
Milo Yip
3b638e6715
Merge pull request #1191 from Sumoren/msc_long
Support long and unsined long as int and unsigned on Microsft platforms
2018-03-09 11:33:12 +08:00
MaximeBF
a37f9d1ecd Fix unsigned long as unsigned unit test 2018-03-08 07:33:26 -05:00
MaximeBF
a040fc3347 Add unittest for long as int in MSC platforms 2018-03-08 07:28:51 -05:00
MaximeBF
294a5aca8f Support long and unsined long as int and unsigned on Microsft platforms 2018-03-06 11:17:04 -05:00
Milo Yip
8bf4f7b97c
Merge pull request #1188 from Martinfx/master
Fix warnings: dereference of null pointer
2018-03-04 17:59:45 +08:00
maficccc@gmail.com
72481d5a04 Fix warnings Dereference of null pointer 2018-03-03 00:08:11 +01:00
Milo Yip
9dfc437477
Merge pull request #1182 from Romain-Geissler-1A/ignore-gcc-8-warnings
Ignore GCC 8 warnings.
2018-02-22 09:24:02 +08:00
Milo Yip
91cd123137
Merge pull request #1181 from luzpaz/misc-typos
Misc. typos
2018-02-22 09:23:00 +08:00
Romain Geissler
54dab1eebb Ignore GCC 8 warnings. 2018-02-19 12:52:16 +01:00
luz.paz
915218878a Misc. typos
Found via `codespell -q 3` in  downstream https://github.com/BlueBrain/Brayns
2018-02-19 06:42:52 -05:00
Milo Yip
49562271be Fix Windows build 2018-02-13 15:08:20 +08:00
Milo Yip
59181a052f Revert "Fix API constness"
This reverts commit 0d2580f1f0a24d24c0e015d01fc9567a7365ce7e.
2018-02-13 12:27:25 +08:00
Milo Yip
0d2580f1f0 Fix API constness
Fix #1014
2018-02-13 12:20:08 +08:00
Milo Yip
a1909a9427
Merge pull request #1179 from Tencent/issue1153_rawvalueencoding
Add transcoding/validation to Writer::RawValue()
2018-02-13 12:20:34 +08:00
Milo Yip
966987625c Add transcoding/validation to Writer::RawValue()
Fix #1152
2018-02-13 10:58:41 +08:00
Milo Yip
e2d0437a9c Fix false alarm from clang-tidy
Fix #1174
2018-02-12 17:38:46 +08:00
Milo Yip
82b5c42567 Fix Compile error because of -Werror=effc++ is on
Fix #1170
Also fixed C++03 problem for using nullptr.
2018-02-12 13:14:59 +08:00
Milo Yip
672e7dd373 Fix invalid type in Pointer
Fixed https://github.com/miloyip/rapidjson-gitbook/issues/1
2018-02-12 10:16:27 +08:00
Milo Yip
daabb88e00
Merge pull request #1068 from yurikhan/violationDetails
Schema violation details
2018-01-26 11:26:27 +08:00
Milo Yip
7641af690e
Merge pull request #1122 from svart-riddare/issue-1108
Suggestion for issue #1108
2018-01-26 10:59:11 +08:00
Milo Yip
cdc899a3f3
Merge pull request #1124 from DerDakon/CMake-cleanup
CMake cleanups
2018-01-26 10:33:30 +08:00
Milo Yip
fc7cda78a9 Fix -Werror=effc++
#1164
2018-01-16 10:35:25 +08:00