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
Étienne Dupuis
6e08e29425
Initialized regex with schema allocator.
2017-10-05 11:39:21 +02:00
Yuri Khan
8c182e51e7
Flatten allOf keyword violations
2017-09-30 20:16:03 +07:00
Yuri Khan
1f75402704
refactor Schema: Keep ErrorHandler reference in Context
2017-09-30 19:05:25 +07:00
KaitoHH
473553bd5a
fix gcc & cl warning
2017-09-29 19:13:29 +08:00
KaitoHH
9394b84440
remove unnecessary code
2017-09-29 18:19:41 +08:00
KaitoHH
799fdea9fc
add cursor wrapper
2017-09-29 15:26:24 +08:00
KaitoHH
143641c75a
suppress C4512, C4702 warning
2017-09-29 15:26:18 +08:00
KaitoHH
79d9c71f98
fix stream wrapper initializer
...
fix initialization warning
add special wrapper for AutoUTFInputStream
2017-09-29 15:24:27 +08:00
KaitoHH
b16ff281f8
Add feature of locating line and column number of error
2017-09-29 15:24:27 +08:00
Yuri Khan
f716c3bfb5
Report schema violation details ( #619 )
2017-09-24 12:56:55 +07:00
Yuri Khan
c2371584a0
Keep schema URI in GenericSchemaDocument and internal::Schema
2017-09-23 21:36:07 +07:00
Yuri Khan
2bfd0cc6c7
internal::Schema: Keep pointer for future use
2017-09-23 20:42:39 +07:00
Christopher Warrington
a683902b2c
Assert Type enum lower bound as well
2017-09-06 15:13:20 -07:00
Christopher Warrington
6e38649ec6
Guard against min/max being macros in document.h
...
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.
2017-09-05 18:26:47 -07:00