abolz
1d636de81e
Fix another signed/unsigned warning
2018-06-15 13:53:48 +02:00
abolz
a2a7d97b3b
Use std::numeric_limits instead of macros
2018-06-15 13:50:19 +02:00
abolz
fc85fbeef0
Fix implicit signed/unsigned conversion and a small glitch in the error computation - part 2
2018-06-15 13:44:43 +02:00
abolz
16c97cd7c5
Fix implicit signed/unsigned conversion and a small glitch in the error computation
2018-06-15 13:44:15 +02:00
abolz
2ea43433e2
Fix bogus gcc warning
2018-06-15 13:41:44 +02:00
abolz
cb009f3050
Return infinity if binary exponent is too large
2018-06-15 12:59:05 +02:00
abolz
4e9b4f6d6a
Return 0 if binary exponent is too small
2018-06-15 11:32:32 +02:00
abolz
f5e5d47fac
Properly test for overflow
...
Do not use an approximation to do this. Instead check if the result is Inf.
2018-06-15 11:29:48 +02:00
abolz
d83d2ba260
Trim all zeros from input
...
If the buffer only contains zeros, return 0.
2018-06-15 10:46:45 +02:00
abolz
c59ecc857d
Replace unsigned with signed integer arithmetic in strtod
2018-06-15 10:44:10 +02:00
abolz
29b6c9b7dc
Add assertions to check preconditions of functions and unsigned integer arithmetic
2018-06-15 10:35:31 +02:00
Marian Klymov
2b0843037e
Autodetect RAPIDJSON_HAS_CXX11_NOEXCEPT and RAPIDJSON_HAS_CXX11_TYPETRAITS for Visual Studio
2018-06-13 20:43:16 +03:00
bogaotory
6f7dcb30d9
again, in relation to solving issue #784 , use SizeType
-typed variable to indicate a none-zero length string has been given in the schema as default value for the json property; added an unittest Object_Required_PassWithDefault
2018-06-01 21:16:26 +01:00
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
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
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
Stephen Kelly
73b8774ab1
Use rvalue refs with clang-cl
2018-04-24 22:55:47 +01: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
Christian Semmler
8a6c345bcc
add remote ref to schemaMap_
2018-03-23 23:33:20 +01:00
John
de6681e295
ensure the pragma is only applied to MSVC
2018-03-19 15:18:08 -04:00
sergey kachanovskiy
2e5dcceda0
Fixes #1198
2018-03-12 16:11:09 +01:00
MaximeBF
294a5aca8f
Support long and unsined long as int and unsigned on Microsft platforms
2018-03-06 11:17:04 -05: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
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
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
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
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
b1e556d713
Merge branch 'master' into violationDetails
2018-01-13 22:34:58 +08:00
Milo Yip
03f5de9d7e
Merge pull request #1065 from yurikhan/invalidSchemaPointer
...
Fix reported violated schema pointer when that schema is remote
2018-01-13 21:17:56 +08:00
xiaoPierre
b8c12c9ccd
Bug when switching to std regex
...
I could not switch to std regex after defining the two variables as in documents. Then I try to fix it in schema.h.
2018-01-11 17:45:35 +01:00
Lele Gaifax
20d44d9c44
Fix FileWriteStream doc
2017-12-22 19:24:15 +01:00
sjaques
9bfa0bb567
Fix uninitilized member Reader::state_
2017-12-21 13:40:28 +01:00
Philipp A. Hartmann
d75bb90a5d
Avoid inheritance from std::iterator
...
Instead of inheriting from the deprecated std::iterator
template, define the member typedefs needed for
std::iterator_traits directly.
Closes #1131 .
2017-12-12 21:16:07 +01:00
Étienne Dupuis
86e280f636
Solves #1108 . The default copy constructor of GenericPointer will use the allocator of the copied object. The extra copy constructor that takes an allocator as a parameter is distinct if someone really wants to create a copy with a null allocator.
2017-11-23 09:16:20 +01:00
clach04
1be14d04a0
Fix issue #1104 Solaris compilation errors fread()/fwrite()
...
Explicit std name space for fread() and fwrite().
2017-10-26 21:19:54 -07:00
Milo Yip
7dddd05462
Merge pull request #1070 from KaitoHH/line-col
...
Add feature of locating line and column number of error
2017-10-20 17:50:48 +08:00
Milo Yip
bf822593ee
Merge pull request #1083 from piotr-kaminski-intel/master
...
Removing Klocwork issues from schema.h
2017-10-20 17:47:13 +08:00
h46incon
a8e9990603
Add MemberCapacity() and MemberReserve() interface for object type.
2017-10-19 20:41:27 +08:00
piotr-kaminski-intel
bb99ccb030
Init variable in the constructor
...
line 358:
'this->notValidatorIndex_' might not be initialized in this constructor.
2017-10-10 14:09:23 +02:00
Milo Yip
f64b773007
Partially fix #1077
2017-10-09 11:33:55 +08:00
piotr-kaminski-intel
b217cc640c
Removing Klocwork issues from schema.h
...
Removing Klocwork static code analysis critical issues:
line 358:
'this->notValidatorIndex_' might not be initialized in this constructor.
line :412
Pointer 'schemaDocument' checked for NULL at line 412 may be passed to function and may be dereferenced there by passing argument this to function 'CreateSchema' at line 419. Also there are 7 similar errors on lines 467 479 511 523 533 538 549.
2017-10-07 00:50:55 +02:00